/* Saytın daxili səhifələri üçün əlavə stillər.
   Yalnız 21st.dev komponentinin tokenləri (--mfl-*), şrifti və element üslubu işlədilir; bax: mfl.css. */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #2f4436; }
body, .mfl-root { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.mfl-root { min-height: 100vh; }
#esas:focus { outline: none; }

.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kecid-atla { position: absolute; left: -9999px; top: 8px; z-index: 90; }
.kecid-atla:focus { left: 16px; }

/* ---- naviqasiya menyusu ---- */
.mfl-dropdown[hidden] { display: none; }
.mfl-dropdown a[aria-current="page"] { background: rgba(255,255,255,.08); }
.mfl-nav-r .sx-ikon { width: 38px; padding: 0; }

/* ---- daxili səhifə başlığı (hero-nun qısa variantı) ---- */
.mfl-hero.sx-head { min-height: 0; }
.sx-head .mfl-circuit-wrap { opacity: .7; }
.sx-head .mfl-hero-head { padding: 112px 20px 52px; }
.sx-head .mfl-h1 { font-size: clamp(34px, 4.8vw, 70px); line-height: 1.02; max-width: 1120px; }
.sx-head .mfl-sub { max-width: 620px; font-size: 15px; }
.sx-head .mfl-backer { flex-wrap: wrap; justify-content: center; }

/* ---- kağız fonlu oxu sahəsi ---- */
.sx-paper { position: relative; background: var(--mfl-paper); color: var(--mfl-ink); padding: 8px 20px 96px; }
.sx-col { max-width: 760px; margin: 0 auto; }
.sx-wide { max-width: 1180px; margin: 0 auto; }
.sx-k { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mfl-muted); margin: 0 0 12px; }
.sx-h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.045em; font-weight: 400; margin: 0 0 18px; }
.sx-h2 .mfl-mute { color: var(--mfl-muted); }
.sx-lead { font-size: 17px; line-height: 1.6; margin: 0 0 28px; }

/* orijinal mətn */
.orijinal { font-size: 19px; line-height: 1.72; letter-spacing: -.004em; }
.orijinal p { margin: 0 0 1em; }
.orijinal .orij-basliq { font-size: clamp(21px, 2.1vw, 27px); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 1.2em; }
.orijinal blockquote.seir {
  margin: 0 0 1.1em; padding: 14px 18px; border-radius: 7px; background: #fbfaf7;
  border-left: 3px solid var(--mfl-brand);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 18px 34px -26px rgba(0,0,0,.45);
}
.orijinal .imza { text-align: right; font-style: italic; color: var(--mfl-muted); margin-top: 2em; }
.hedef { outline: 2px solid var(--mfl-glow); outline-offset: 6px; border-radius: 4px; }
.sx-title-orij { font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: -.05em; font-weight: 400; margin: 0 0 10px; }

.istinad {
  font: inherit; color: var(--mfl-brand); background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color .2s;
}
.istinad:hover { text-decoration-style: solid; }
.termin {
  text-decoration: underline dashed; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--mfl-brand) 65%, transparent); cursor: help;
}
.ipucu {
  position: absolute; z-index: 60; max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px; border-radius: 7px; background: var(--mfl-night); color: var(--mfl-cream);
  font-size: 13.5px; line-height: 1.45; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6);
  animation: mfl-pop .2s cubic-bezier(.2,.8,.2,1);
}

/* əsas fikir – qaranlıq stat kartı üslubunda */
.sx-idea {
  max-width: 760px; margin: 0 auto 28px; padding: 18px 20px 20px; border-radius: 6px;
  background: var(--mfl-card); color: var(--mfl-cream);
  box-shadow: 0 30px 50px -28px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.sx-idea .sx-k { color: color-mix(in srgb, var(--mfl-cream) 60%, transparent); }
.sx-idea p.sx-idea-t { font-size: 18px; line-height: 1.55; letter-spacing: -.015em; }

/* irəliləmə paneli – wallet panelinin quruluşu */
.sx-progress { width: min(100%, 760px); margin: 0 auto 24px; }
.sx-progress .mfl-wallet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.mfl-wtile { color: inherit; text-decoration: none; }
.mfl-wtile .sx-nom { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mfl-ink); color: var(--mfl-cream); font-size: 9.5px; font-weight: 600; }
.mfl-wtile.is-sel .sx-nom { background: var(--mfl-brand); }
.sx-progress .mfl-wtile b { white-space: normal; font-size: 11.5px; line-height: 1.25; }
.sx-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.sx-parts .mfl-btn { text-decoration: none; }

/* ağ panellər (termin, izah, sxem qutuları) */
.sx-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 32px; }
.sx-panel {
  padding: 14px; border-radius: 7px; background: #fbfaf7; color: #1c1412; text-align: left;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 18px 34px -26px rgba(0,0,0,.45);
}
.sx-panel h3 { font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; }
.sx-panel p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: #6e655e; }
.sx-panel a { text-decoration: underline; text-underline-offset: 2px; }
.sx-note { margin: 0 0 36px; }

/* qaranlıq bölmələr */
.sx-sec { padding: 96px 16px 40px; text-align: center; }
.sx-sec .mfl-h2 { margin-left: auto; margin-right: auto; max-width: 980px; }
.sx-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 64px 16px 96px; }
.sx-pager .mfl-btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 22px; text-align: center; }

/* özünüyoxlama */
.sx-quiz { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 44px; }
.sx-q {
  width: min(100%, 760px); padding: 22px; border-radius: 6px; text-align: left;
  background: var(--mfl-cream); color: var(--mfl-ink); box-shadow: 0 40px 70px -40px rgba(0,0,0,.8);
}
.sx-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sx-q legend { padding: 0; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.sx-opt {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 10px 12px; border-radius: 5px;
  background: #f2efea; font-size: 15px; line-height: 1.4; cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.sx-opt:hover { background: #ebe6df; }
.sx-opt:has(input:checked) { background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mfl-brand) 55%, transparent), 0 6px 14px -8px rgba(0,0,0,.3); }
.sx-opt input { accent-color: var(--mfl-brand); margin-top: 3px; flex: none; }
.sx-q .mfl-cta-row { justify-content: flex-start; margin-top: 16px; }
.cavab { margin-top: 14px; padding: 10px 14px; border-radius: 5px; background: #fbfaf7; border-left: 3px solid var(--mfl-muted); font-size: 14.5px; line-height: 1.5; animation: mfl-swap .45s cubic-bezier(.2,.8,.2,1); }
.cavab.duz { border-left-color: #3d8c56; }
.cavab.sehv { border-left-color: #b03a2e; }
.cavab strong { display: block; font-weight: 600; }
.cavab p { margin-top: 4px; }

/* sxemlər */
.sx-map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; width: min(100%, 1000px); margin-top: 44px; }
.sx-map .sx-panel { position: relative; z-index: 1; }
.sx-map .sx-center { grid-row: 2; grid-column: 2; display: grid; place-items: center; text-align: center; background: var(--mfl-brand); color: #fff; font-size: 20px; letter-spacing: -.03em; }
.sx-map .sx-wide-cell { grid-column: 1 / -1; text-align: center; }
.sx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.sx-lines .mfl-trace { stroke: var(--mfl-cream); stroke-opacity: .28; }
.sx-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; width: min(100%, 1100px); margin-top: 44px; }
.sx-flow .sx-arrow, .sx-link .sx-arrow { align-self: center; font-size: 22px; color: color-mix(in srgb, var(--mfl-cream) 55%, transparent); }
.sx-panel ul { margin-top: 8px; display: grid; gap: 4px; }
.sx-panel li { font-size: 13.5px; line-height: 1.4; color: #3a332f; padding-left: 12px; position: relative; }
.sx-panel li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--mfl-brand); }
.sx-links { display: grid; gap: 14px; width: min(100%, 900px); margin-top: 36px; }
.sx-link { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.sx-link .sx-src { grid-column: 1 / -1; font-size: 12.5px; color: color-mix(in srgb, var(--mfl-cream) 65%, transparent); margin-top: -4px; text-align: left; }
.sx-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 auto 28px; max-width: 760px; }
.sx-pair .sx-arrow { font-size: 22px; color: var(--mfl-muted); }
.sx-pair-cap { grid-column: 1 / -1; font-size: 12.5px; color: var(--mfl-muted); text-align: center; }
.sx-fcards-text { text-align: left; }
.sx-fcards-text .mfl-fcard { padding: 22px; }
.sx-fcards-text .mfl-fcard h3 { margin-top: 0; font-size: 18px; }
.sx-fcards-text .mfl-fcard > p { margin: 10px 0 0; max-width: none; font-size: 14px; color: #4b4540; }
.sx-toc { margin-top: 14px; display: grid; gap: 0; }
.sx-toc li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; border-top: 1px solid rgba(0,0,0,.08); }
.sx-toc li span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mfl-muted); }

/* lüğət */
.sx-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 24px; }
.sx-letters a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 5px; background: #f2efea; font-weight: 500; transition: background-color .2s, box-shadow .2s; }
.sx-letters a:hover { background: #fff; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mfl-brand) 55%, transparent); }
.sx-group h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 400; letter-spacing: -.05em; margin: 48px 0 14px; }
.sx-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sx-terms .sx-panel h3 { font-size: 19px; }
.sx-terms .sx-panel p { font-size: 14px; }
.sx-terms .sx-panel a { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--mfl-brand); }

/* ədəbiyyat */
.sx-bib li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--mfl-ink) 10%, transparent); font-size: 16px; line-height: 1.55; }
.sx-bib li.qrup { border: 0; padding-top: 40px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--mfl-muted); }
.sx-bib li.hedef { outline-offset: 4px; }
.orijinal .sx-bib-h { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; font-weight: 400; margin: 0 0 8px; }

/* axtarış */
.sx-results li { padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--mfl-ink) 10%, transparent); font-size: 15.5px; line-height: 1.55; }
.sx-results .yer { display: inline-block; margin-bottom: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--mfl-brand); text-decoration: underline; text-underline-offset: 2px; }
mark { background: color-mix(in srgb, var(--mfl-glow) 75%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.sx-search-form { display: flex; gap: 8px; margin-top: 18px; }
.sx-search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--mfl-ink) 14%, transparent); background: #fbfaf7; font-size: 15px; outline: none; }
.sx-search-form input:focus { border-color: var(--mfl-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mfl-brand) 18%, transparent); }

/* istinad dialoqu */
.mfl-dialog ol { list-style: decimal; padding-left: 22px; margin-top: 14px; }
.mfl-dialog li { font-size: 14px; line-height: 1.5; margin-top: 10px; }
.mfl-dialog li b { font-weight: 600; }
.mfl-dialog li a { color: var(--mfl-brand); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }

/* landinq əlavələri */
.sx-author { display: flex; flex-direction: column; align-items: center; }
.sx-author img { display: block; height: 214px; width: auto; max-width: 100%; }
.sx-author figcaption { margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.mfl-wallet .mfl-panel-row a.mfl-link { white-space: nowrap; }
.sx-unit-tile .mfl-cur { font-size: 10px; }
.mfl-stat-split .mfl-legend li span { white-space: nowrap; }
.mfl-statement .sx-src { display: block; margin-top: 18px; font-size: 14px; letter-spacing: 0; color: color-mix(in srgb, var(--mfl-cream) 55%, transparent); }

@media (max-width: 980px) {
  .sx-flow { grid-template-columns: minmax(0, 1fr); }
  .sx-flow .sx-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 760px) {
  .sx-map { grid-template-columns: minmax(0, 1fr); }
  .sx-map .sx-center { grid-row: 1; grid-column: 1; min-height: 64px; }
  .sx-lines { display: none; }
  .sx-link, .sx-pair { grid-template-columns: minmax(0, 1fr); }
  .sx-link .sx-arrow, .sx-pair .sx-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 640px) {
  .sx-paper { padding: 8px 14px 72px; }
  .orijinal { font-size: 18px; }
  .sx-head .mfl-hero-head { padding: 96px 14px 40px; }
  .sx-progress .mfl-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-q { padding: 16px; }
}

/* Paddinqli enli panellər konteynerdən çıxmasın */
.sx-progress, .sx-panel, .sx-q, .sx-idea, .sx-search-form input, .sx-author { box-sizing: border-box; }
