/**
 * Blog detay — tedavi sayfası iskeleti (canlı).
 * body.tx-treatment.tx-blog altında çalışır.
 */

/* Attribution in lead */
body.tx-blog .tx-blog-byline {
  margin: 0 0 1.25rem;
}
body.tx-blog .tx-blog-byline .blog-author-byline {
  max-width: none;
}

body.tx-blog .tx-lead__heading {
  margin: 0 0 0.75rem;
  font-family: var(--tx-sans);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0b1c33;
}

body.tx-blog .tx-lead__copy > p,
body.tx-blog .tx-lead__copy .tx-lead__intro p {
  margin: 0 0 1.15rem;
  max-width: none;
  font-family: var(--tx-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3d4f63;
  text-wrap: pretty;
}

body.tx-blog .tx-chapter__lede-html {
  margin: 0.35rem 0 0;
  font-family: var(--tx-ui);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5a6b7d;
}
body.tx-blog .tx-chapter__lede-html p {
  margin: 0 0 0.65rem;
  max-width: none;
}
body.tx-blog .tx-chapter__lede-html p:last-child {
  margin-bottom: 0;
}

body.tx-blog .tx-topic__body p,
body.tx-blog .tx-topic__body ul,
body.tx-blog .tx-topic__body ol {
  max-width: none;
}
body.tx-blog .tx-topic__body ul,
body.tx-blog .tx-topic__body ol {
  margin: 0 0 0.95rem;
  padding-left: 1.15rem;
}
body.tx-blog .tx-topic__body li {
  margin: 0 0 0.35rem;
}
body.tx-blog .tx-topic__body blockquote {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid rgba(47, 120, 192, 0.55);
  background: rgba(16, 35, 63, 0.035);
  border-radius: 0 12px 12px 0;
  font-family: var(--tx-ui);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #163254;
}
body.tx-blog .tx-topic__body blockquote p {
  margin: 0;
}

/* Single-topic chapters: same framed body padding as accordion topics */
body.tx-blog .tx-topic-solo {
  margin: 0;
  padding: 1rem 1.15rem 1.25rem;
  scroll-margin-top: 5.75rem;
  font-family: var(--tx-ui);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #243447;
}
body.tx-blog .tx-topic-solo > *:first-child {
  margin-top: 0;
}
body.tx-blog .tx-topic-solo > p:first-child {
  font-size: 1.02rem;
  color: #1c3148;
}
body.tx-blog .tx-topic-solo p {
  margin: 0 0 0.85rem;
  max-width: none;
  text-wrap: pretty;
}
body.tx-blog .tx-topic-solo p:last-child {
  margin-bottom: 0;
}
body.tx-blog .tx-topic-solo ul,
body.tx-blog .tx-topic-solo ol {
  margin: 0 0 0.95rem;
  padding-left: 1.15rem;
  max-width: none;
}
body.tx-blog .tx-topic-solo li {
  margin: 0 0 0.35rem;
}

/* Accordion body: slightly more horizontal breathing room on blog */
body.tx-blog .tx-topic__summary {
  padding: 1rem 1.35rem;
}
body.tx-blog .tx-topic__body {
  padding: 0.35rem 1.35rem 1.35rem;
}

/* TOC: direct chapter link when no subtopics */
body.tx-blog .tx-toc__group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--tx-ui);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: background 0.15s ease;
}
body.tx-blog .tx-toc__group-link:hover,
body.tx-blog .tx-toc__group-link:focus-visible {
  background: rgba(16, 35, 63, 0.04);
  outline: none;
}

/* Related posts */
body.tx-blog .tx-related {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: #fff;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
}
body.tx-blog .tx-related__title {
  margin: 0 0 1.25rem;
  font-family: var(--tx-sans);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1c33;
}
body.tx-blog .tx-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
body.tx-blog .tx-related__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(243, 246, 250, 0.65);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
body.tx-blog .tx-related__card:hover {
  border-color: rgba(47, 120, 192, 0.35);
  transform: translateY(-2px);
}
body.tx-blog .tx-related__card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
body.tx-blog .tx-related__meta {
  padding: 0.95rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
body.tx-blog .tx-related__date {
  font-family: var(--tx-ui);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6b7d;
}
body.tx-blog .tx-related__name {
  margin: 0;
  font-family: var(--tx-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #10233f;
}
body.tx-blog .tx-related__more {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--tx-ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f78c0;
}

@media (max-width: 991px) {
  body.tx-blog .tx-related__grid {
    grid-template-columns: 1fr;
  }
}

/* Draft banner */
.tx-draft-banner {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(24rem, calc(100vw - 1.5rem));
  padding: 0.38rem 0.65rem;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #1a1208;
  background: rgba(246, 196, 83, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.tx-draft-banner strong { letter-spacing: 0.08em; font-size: 0.68rem; }
.tx-draft-banner span { display: none; }
.tx-draft-banner a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
@media (min-width: 640px) { .tx-draft-banner span { display: inline; } }

body.tx-blog .tx-blog-inline-link a {
  font-weight: 600;
  color: #2f78c0;
}

body.tx-blog .tx-blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-family: var(--tx-ui);
  font-size: 0.94rem;
  line-height: 1.55;
}
body.tx-blog .tx-blog-table th,
body.tx-blog .tx-blog-table td {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(16, 35, 63, 0.1);
  vertical-align: top;
  text-align: left;
}
body.tx-blog .tx-blog-table thead th {
  background: rgba(16, 35, 63, 0.04);
  font-weight: 650;
  color: #10233f;
}
  body.tx-blog .tx-blog-table tbody tr:nth-child(even) td {
  background: rgba(16, 35, 63, 0.02);
}

/* Inline citations — compact superscript chips */
body.tx-blog .tx-blog-cites {
  display: inline;
  font-size: 0.72em;
  line-height: 0;
  font-weight: 650;
  font-family: var(--tx-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(16, 35, 63, 0.45);
  vertical-align: super;
}
body.tx-blog .tx-blog-cite {
  color: #2a6aad;
  text-decoration: none;
  padding: 0 0.05em;
  border-radius: 2px;
}
body.tx-blog .tx-blog-cite:hover,
body.tx-blog .tx-blog-cite:focus-visible {
  color: #174e86;
  text-decoration: underline;
  text-underline-offset: 1px;
  outline: none;
}

/* Bibliography — compact classical list */
body.tx-blog .tx-chapter--refs {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
}
body.tx-blog .tx-chapter--refs .tx-chapter__head {
  margin-bottom: 0.85rem;
}
body.tx-blog .tx-chapter--refs .tx-chapter__title {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
body.tx-blog .tx-chapter__refs {
  margin: 0;
  max-width: 42rem;
}
body.tx-blog .tx-blog-refs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
body.tx-blog .tx-blog-ref {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.35rem 0.45rem;
  align-items: start;
  margin: 0;
  padding: 0.15rem 0;
  scroll-margin-top: 5.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(16, 35, 63, 0.72);
}
body.tx-blog .tx-blog-ref:target {
  background: rgba(42, 106, 173, 0.06);
  outline: 1px solid rgba(42, 106, 173, 0.18);
  outline-offset: 3px;
}
body.tx-blog .tx-blog-ref__num {
  font-family: var(--tx-ui);
  font-weight: 650;
  font-size: 0.8rem;
  color: rgba(16, 35, 63, 0.55);
  line-height: 1.45;
}
body.tx-blog .tx-blog-ref__text {
  min-width: 0;
}
body.tx-blog .tx-blog-ref__doi {
  display: inline;
  margin-left: 0.15rem;
  font-family: var(--tx-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a6aad;
  text-decoration: none;
  word-break: break-all;
}
body.tx-blog .tx-blog-ref__doi:hover,
body.tx-blog .tx-blog-ref__doi:focus-visible {
  color: #174e86;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

@media (max-width: 767px) {
  body.tx-blog .tx-blog-table thead { display: none; }
  body.tx-blog .tx-blog-table tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(16, 35, 63, 0.1);
    border-radius: 12px;
    overflow: hidden;
  }
  body.tx-blog .tx-blog-table td {
    display: block;
    border: 0;
    border-bottom: 1px solid rgba(16, 35, 63, 0.08);
  }
  body.tx-blog .tx-blog-table td:last-child { border-bottom: 0; }
}
