/* Nergizler / Detail content typography — applies to article & practice details only.
   Loaded AFTER the existing theme CSS. Do not alter theme classes or list pages. */

/* Maintain comfortable line length on long legal content. */
#main-content > .section > .wrap > .article {
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
}

#main-content .article .ng-richtext {
  font-family: var(--sans, 'Libre Franklin', sans-serif);
  font-size: 16.5px;
  line-height: 1.84;
  color: #26374a;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: start;
}

/* Historical editor HTML is stripped of inline colors/font sizes by the sanitizer. */
#main-content .article .ng-richtext p,
#main-content .article .ng-richtext li,
#main-content .article .ng-richtext td,
#main-content .article .ng-richtext blockquote {
  color: #26374a;
  font-family: inherit;
  font-size: 16.5px;
  line-height: 1.84;
  font-weight: 400;
}
#main-content .article .ng-richtext p { margin: 0 0 22px; }
#main-content .article .ng-richtext > :first-child { margin-top: 0; }
#main-content .article .ng-richtext > :last-child { margin-bottom: 0; }
#main-content .article .ng-richtext strong,
#main-content .article .ng-richtext b {
  color: #142b43;
  font-weight: 700;
}
#main-content .article .ng-richtext em,
#main-content .article .ng-richtext i { font-style: italic; }

/* The page hero is the sole H1; the CMS body starts at H2. */
#main-content .article .ng-richtext h2 {
  font-family: var(--serif, Georgia, serif);
  color: #0f1e2e;
  font-size: clamp(27px, 2.7vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 48px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1d5bf;
}
#main-content .article .ng-richtext h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 56px;
  max-width: 22%;
  margin-top: 14px;
  margin-bottom: -16px;
  background: #c9a05a;
}
#main-content .article .ng-richtext h3 {
  font-family: var(--sans, 'Libre Franklin', sans-serif);
  color: #142b43;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  margin: 32px 0 13px;
}
#main-content .article .ng-richtext h4 {
  font-family: var(--sans, 'Libre Franklin', sans-serif);
  color: #172f46;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 24px 0 10px;
}
#main-content .article .ng-richtext h2 + h3 { margin-top: 21px; }
#main-content .article .ng-richtext h3 + p,
#main-content .article .ng-richtext h4 + p { margin-top: 0; }

#main-content .article .ng-richtext ul,
#main-content .article .ng-richtext ol {
  margin: 8px 0 26px;
  padding-inline-start: 29px;
}
#main-content .article .ng-richtext li {
  padding-inline-start: 4px;
  margin: 0 0 10px;
}
#main-content .article .ng-richtext li::marker { color: #a57e36; font-weight: 700; }
#main-content .article .ng-richtext li > ul,
#main-content .article .ng-richtext li > ol { margin: 12px 0 0; }

#main-content .article .ng-richtext blockquote {
  padding: 24px 28px;
  margin: 30px 0;
  border-inline-start: 4px solid #c9a05a;
  border-radius: 6px;
  background: #f2ece1;
  color: #26374a;
}
#main-content .article .ng-richtext a {
  color: #94651d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
#main-content .article .ng-richtext a:hover,
#main-content .article .ng-richtext a:focus-visible { color: #0f1e2e; }
#main-content .article .ng-richtext img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 24px;
  border-radius: 6px;
}
#main-content .article .ng-richtext figure { margin: 26px 0; }
#main-content .article .ng-richtext figcaption {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: #596a79;
  margin-top: 8px;
}
#main-content .article .ng-richtext table {
  display: block;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  margin: 28px 0;
}
#main-content .article .ng-richtext th,
#main-content .article .ng-richtext td {
  border: 1px solid #e1d5bf;
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
}
#main-content .article .ng-richtext th {
  background: #f2ece1;
  color: #142b43;
  font-weight: 700;
}

/* Cover and editorial body share the same content width. */
#main-content .article .ng-richtext .ng-detail-cover,
#main-content .article > .ng-detail-cover { margin: 0 0 34px; }
#main-content .article .ng-detail-cover img,
#main-content .article > .ng-detail-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 8px;
}

/* Blog metadata & CTA keep theme styling. */
#main-content .article .meta { color: #66788b; }
#main-content .article .meta .chip { color: #865f21; }
#main-content .article .post-cta h3 { color: #ffffff; }
#main-content .article .post-cta p { color: #b9c4d0; }

html[dir="rtl"] #main-content .article .ng-richtext,
html[dir="rtl"] #main-content .article .ng-richtext h3,
html[dir="rtl"] #main-content .article .ng-richtext h4 {
  font-family: 'Noto Kufi Arabic', var(--sans, sans-serif);
}
html[dir="rtl"] #main-content .article .ng-richtext h2 {
  font-family: 'Noto Kufi Arabic', var(--sans, sans-serif);
  letter-spacing: normal;
}

@media (max-width: 767px) {
  #main-content .article .ng-richtext { font-size: 15.5px; line-height: 1.85; }
  #main-content .article .ng-richtext p,
  #main-content .article .ng-richtext li,
  #main-content .article .ng-richtext td,
  #main-content .article .ng-richtext blockquote { font-size: 15.5px; line-height: 1.85; }
  #main-content .article .ng-richtext h2 { font-size: 27px; margin-top: 35px; }
  #main-content .article .ng-richtext h3 { font-size: 19px; }
  #main-content .article .ng-richtext blockquote { padding: 18px 20px; }
  #main-content .article .ng-detail-cover img,
  #main-content .article > .ng-detail-cover img { max-height: 300px; }
}

/* 26.11.2026: hizmet/blog detayinda Lighthouse WCAG-AA kontrast noktalari.
   Yalnizca baslik/footer okunurlugu; kart, grid, boyut, spacing degismez. */
.nav .brand-sub,
.nav .nav-links > a.active:not(.btn),
.nav .nav-links > a[aria-current="page"]:not(.btn) { color: #71501b !important; }
.nav .nav-links > a.nav-cta.btn-gold { color: #10151c !important; }
.ng-footer .footer-bottom,
.ng-footer .footer-bottom span,
.ng-footer .ng-footer-bottom-left,
.ng-footer .ng-footer-credit,
.ng-footer .ng-footer-legal { color: #b9c9dd !important; }

/* 26.11.2026 - Lighthouse link-in-text-block: Breadcrumb baglantilari
   hem alt cizgi hem de daha okunur beyaz renk ile ayirt edilir. */
#main-content .page-head .crumb a {
  color: #ffffff !important;
  text-decoration-line: underline;
  text-decoration-color: #e0b96c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
#main-content .page-head .crumb a:hover,
#main-content .page-head .crumb a:focus-visible {
  color: #ffe0a7 !important;
  text-decoration-thickness: 2px;
}

/* 26.11.2026 - Blog detail: Lighthouse WCAG AA + H2 semantic CTA.
   Only the actual failing nodes and .post-cta's new heading; no layout changes. */
#main-content .article > a.back-link,
#main-content .article > a.back-link:visited { color: #75551e; }
#main-content .article > .meta { color: #536577; }
#main-content .article .post-cta h2 {
  color: #ffffff;
  font-size: 21px;
  font-family: var(--sans, 'Libre Franklin', Arial, sans-serif);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  border: 0;
}
#main-content .article .post-cta h2::after { content: none; }
html[dir="rtl"] #main-content .article .post-cta h2 {
  font-family: 'Noto Kufi Arabic', var(--sans, sans-serif);
}
