/*
 * Eğitim Şart — Sade Okuma Düzeni 0.1.0
 * Only visual refinements. No changes to ad containers, ad scripts, content or SEO metadata.
 * Scoped to the Eğitim Şart Portal theme by the plugin loader.
 */
:root {
  --es-readable-line: #e6e9ee;
  --es-readable-ink: #233143;
}

/* Keep the outer shell stable. Give editorial pages more breathing room. */
body.single-post .es-main {
  padding-top: 22px;
}
body.single-post .es-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 286px);
  align-items: start;
  gap: clamp(20px, 2.5vw, 32px);
}
body.single-post .es-content-column,
body.single-post .es-article,
body.single-post .es-article__content {
  min-width: 0;
}
body.single-post .es-article__header {
  margin-bottom: 19px;
}
body.single-post .es-article__header h1 {
  margin: 6px 0 12px;
  font-size: clamp(27px, 2.45vw, 36px);
  line-height: 1.22;
  letter-spacing: -.025em;
  color: var(--es-readable-ink);
  overflow-wrap: anywhere;
}
body.single-post .es-article__meta {
  font-size: 12px;
  line-height: 1.55;
  color: #667384;
}
body.single-post .es-article__content {
  color: #354355;
  font-size: 16.5px;
  line-height: 1.76;
  overflow-wrap: break-word;
}
body.single-post .es-article__content p,
body.single-post .es-article__content ul,
body.single-post .es-article__content ol {
  margin-bottom: 16px;
}
body.single-post .es-article__content h2 {
  margin: 33px 0 12px;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--es-readable-ink);
}
body.single-post .es-article__content h3 {
  margin: 25px 0 10px;
  font-size: clamp(19px, 1.7vw, 21px);
  line-height: 1.35;
}
body.single-post .es-article__content :is(h2, h3, h4) + p {
  margin-top: 0;
}
body.single-post .es-article__content :is(ul, ol) {
  padding-inline-start: 24px;
}
body.single-post .es-article__content li {
  padding-inline-start: 2px;
  margin-bottom: 7px;
}
body.single-post .es-article__content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 3px solid #b8c5d6;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #304057;
}
body.single-post .es-article__content :is(.wp-block-table, .table-responsive) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 25px;
}
body.single-post .es-article__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
body.single-post .es-article__content :is(th, td) {
  padding: 11px 12px;
  border: 1px solid var(--es-readable-line);
  text-align: start;
  vertical-align: top;
}
body.single-post .es-article__content th {
  background: #f3f6f9;
  color: #233143;
}
body.single-post .es-article__content tr:nth-child(even) td {
  background: #fbfcfe;
}
body.single-post .es-article__content img {
  max-width: 100%;
  height: auto;
}
body.single-post .es-auto-toc {
  border-color: var(--es-readable-line);
  background: #f8fafc;
  border-radius: 9px;
  margin-bottom: 22px;
}
body.single-post .es-auto-toc > button {
  padding: 12px 14px;
}
body.single-post .es-sidebar {
  gap: 15px;
}
body.single-post .es-sidebar .es-widget {
  border-radius: 10px;
  box-shadow: none;
}
body.single-post .es-sidebar .es-widget__title {
  font-size: 15px;
  letter-spacing: 0;
}
body.single-post .es-related {
  margin-top: 30px;
  border-top: 1px solid var(--es-readable-line);
  padding-top: 23px;
}

/* The homepage keeps all sections and advertising. Give its headings a calmer hierarchy. */
.es-home .es-home-intro {
  margin-bottom: 23px;
}
.es-home .es-home-intro h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.es-home .es-section-heading h2 {
  font-size: clamp(19px, 2vw, 23px);
}

/* Preserve ads exactly where the theme places them. Never hide .es-ad-slot
   or third-party .adsbygoogle elements. */
@media (max-width: 920px) {
  body.single-post .es-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  body.single-post .es-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  body.single-post .es-container {
    width: calc(100% - 24px);
  }
  body.single-post .es-article__header h1 {
    font-size: clamp(26px, 6vw, 31px);
  }
  body.single-post .es-article__content {
    font-size: 16px;
    line-height: 1.72;
  }
  body.single-post .es-article__content :is(th,td) {
    padding: 9px 10px;
    font-size: 13px;
  }
  body.single-post .es-article__content :is(ul, ol) {
    padding-inline-start: 21px;
  }
}
