/* Məqalə səhifəsi (MƏQALƏ 6): yuxarıda başlıq və foto, altda xətli sətirlər */
body:has(main.article-page) { background: #F4F8F5; }
main.article-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px max(24px, calc((100% - 1200px) / 2)) 72px;
  color: #102018;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.article-page .article-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: auto;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #6B7A72;
}
.article-page .article-crumbs a { color: #6B7A72; text-decoration: none; transition: color .15s ease; }
.article-page .article-crumbs a:hover { color: #17855A; }
.article-page .article-crumbs a:focus-visible { outline: 2px solid #17855A; outline-offset: 2px; }
.article-page .article-crumbs [aria-current] { color: #102018; font-weight: 500; }

.article-page .article-head { margin-top: 28px; }
.article-page .article-head.has-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
}
.article-page .article-head h1 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #102018;
}
.article-page .article-lead {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: #44524B;
}
.article-page .article-cover {
  display: block;
  width: 100%;
  height: 280px;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 35%;
}

.article-page .article-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: zoom-in;
}
.article-page .article-zoom:focus-visible { outline: 2px solid #17855A; outline-offset: 3px; }

.article-viewer {
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.article-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: article-fade .2s ease;
}
.article-viewer::backdrop { background: rgb(16 32 24 / .86); }
.article-viewer img {
  display: block;
  max-width: 92vw;
  max-height: 88dvh;
  border-radius: 12px;
  cursor: default;
}
.article-viewer-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: #102018;
  cursor: pointer;
}
.article-viewer-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.article-viewer-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@keyframes article-fade { from { opacity: 0; } to { opacity: 1; } }

.article-page .article-body {
  max-width: none;
  margin: 44px 0 0;
  border-bottom: 1px solid #DCE4DF;
}
.article-page .article-body section {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 56px;
  margin: 0;
  padding: 30px 0;
  border-top: 1px solid #DCE4DF;
}
.article-page .article-body h2 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #102018;
}
.article-page .article-text { grid-column: 2; }
/* başlıqsız bənd (köhnə bloqun giriş mətni): sol sütun boş qalmasın, mətn başlığın altından başlayır */
.article-page .article-body section.is-plain { grid-template-columns: minmax(0, 820px); }
.article-page .article-body section.is-plain .article-text { grid-column: 1; }
.article-page .article-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #33423B;
}
.article-page .article-text p + p { margin-top: 14px; }
.article-page .article-text strong { font-weight: 650; color: #102018; }
.article-page .article-text ul {
  margin: 14px 0 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: #33423B;
}
.article-page .article-text ul:first-child { margin-top: 0; }
.article-page .article-text li + li { margin-top: 6px; }
.article-page .article-text li::marker { color: #17855A; }
.article-page .article-text ul + p { margin-top: 14px; }

.article-page .article-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid #E1E7E3;
  border-radius: 16px;
  background: #FFFFFF;
  color: #102018;
}
.article-page .article-demo h2 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  color: #102018;
}
.article-page .article-demo p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #44524B; }
.article-page .article-demo .btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #17855A;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  transition: background-color .15s ease;
}
.article-page .article-demo .btn::after { content: none; }
.article-page .article-demo .btn:hover { background: #116B48; transform: none; }

.article-page .related-section { padding-top: 60px; }
.article-page .related-section > h2 {
  margin: 0 0 20px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #102018;
}
.article-page .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
  margin: 0;
}

@media (max-width: 1100px) {
  .article-page .article-head.has-cover { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .article-page .article-body section { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
  .article-page .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  main.article-page { padding: 28px 16px 48px; }
  .article-page .article-head.has-cover { grid-template-columns: 1fr; gap: 24px; }
  .article-page .article-lead { font-size: 17px; }
  .article-page .article-cover { height: auto; aspect-ratio: 16 / 10; }
  .article-page .article-body { margin-top: 32px; }
  .article-page .article-body section { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .article-page .article-body h2 { font-size: 22px; }
  .article-page .article-text { grid-column: 1; }
  .article-page .article-demo { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* Telefon (2026-11-17, istifadəçi: «fotonun altında və üstündə yazı ucuz görünür»): müasir məqalə saytları kimi —
   başlıq → foto kənardan-kənara (çərçivəsiz) → giriş mətni → məqalə. */
@media (max-width: 760px) {
  .article-page .article-head.has-cover { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
  .article-page .article-head.has-cover > div { display: contents; }
  .article-page .article-head h1 { order: 1; font-size: 28px; line-height: 1.2; text-wrap: balance; }
  .article-page .article-zoom { order: 3; width: calc(100% + 32px); margin: 20px -16px 0; border-radius: 0; }
  .article-page .article-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .article-page .article-lead { order: 4; margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: #24332B; }
}
