/* Elastisite Teorisi kaynağı (tr/akademik/mkc-521-elastisite-teorisi/) — ml.css üzerine küçük eklemeler.
   Bu dosya yalnız bu bölümün sayfalarında yüklenir. */

/* Şekil numarası ve boyutları */
.el-figure figcaption .el-fig-no { font-weight: 700; color: var(--fg); }
:root[data-theme="dark"] .el-figure figcaption .el-fig-no { color: #1f2937; }
.el-figure-dar { max-width: 560px; margin-left: auto; margin-right: auto; }
.el-figure-orta { max-width: 720px; margin-left: auto; margin-right: auto; }
.el-fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.el-fig-row > .el-figure { margin: 0; }
@media (max-width: 760px) { .el-fig-row { grid-template-columns: minmax(0, 1fr); } }

/* Çözümlü örnek */
.el-example { margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; scroll-margin-top: 96px; }
.el-example-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, #1baf7a 9%, var(--paper)); }
.el-example-no { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #12805a; }
:root[data-theme="dark"] .el-example-no { color: #4cc79a; }
.el-example-title { font-weight: 700; color: var(--fg); }
.el-example-q { padding: 14px 18px 4px; }
.el-example-q > :last-child { margin-bottom: 10px; }
.el-example-sol { padding: 6px 18px 12px; border-top: 1px dashed var(--line); }
.el-example-sol > :last-child { margin-bottom: 6px; }
.el-sol-label { margin: 8px 0 4px !important; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.el-example p, .el-example li { font-size: 1.02rem; }
.el-example mjx-container[display="true"] { margin: .7em 0 !important; }

/* Kutu türleri */
.el-box-teorem { border-left-color: #6250d6 !important; }
.el-box-teorem .k-label { color: #6250d6; }
:root[data-theme="dark"] .el-box-teorem .k-label { color: #9085e9; }
.el-box-sinav { border-left-color: #c2410c !important; }
.el-box-sinav .k-label { color: #c2410c; }
:root[data-theme="dark"] .el-box-sinav .k-label { color: #f08b5a; }
.el-box-tanim { border-left-color: #1baf7a !important; }
.el-box-tanim .k-label { color: #12805a; }
:root[data-theme="dark"] .el-box-tanim .k-label { color: #4cc79a; }

/* Açılış sayfası */
.el-tag-week { color: var(--muted); }
.el-notation { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.el-notation li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .95rem; line-height: 1.6; }
.el-notation b { display: block; margin-bottom: 2px; }
.el-page .exam-set { margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, var(--paper)); }
.el-page .exam-set > summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; }
.el-page .exam-set[open] > summary { border-bottom: 1px solid var(--line); }
.el-page .exam-questions { margin: 0; padding: 1rem 1.2rem 1rem 2.4rem; }
.el-page .exam-questions > li { margin: 0 0 1rem; padding-left: .25rem; line-height: 1.7; }
.el-page .exam-note { color: var(--muted); font-size: .92rem; }

/* Sözlük ve kaynakça */
.el-glossary { width: 100%; }
.el-glossary td:first-child { font-weight: 600; white-space: nowrap; }
.el-refs { list-style: none; padding: 0 !important; }
.el-refs li { margin: 0 0 14px; padding-left: 1.6em; text-indent: -1.6em; line-height: 1.65; }
.el-refs .el-ref-note { display: block; text-indent: 0; color: var(--muted); font-size: .92rem; }

/* Etkileşimli denemeler (js/elastisite/el-demolar.js) — ml.css .ml-demo-* üzerine */
.el-demo .el-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.el-demo .ml-demo-label { margin: 0; }
.el-demo-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.el-demo-inputs[hidden] { display: none !important; }
.el-demo .el-demo-num { display: grid; gap: 3px; font-size: .82rem; font-weight: 600; color: var(--fg); }
.el-demo .el-demo-num input { width: 100%; min-width: 0; min-height: 38px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--fg); font: .92rem/1.2 var(--ml-mono); font-variant-numeric: tabular-nums; }
.el-demo .el-demo-num input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.el-demo .el-demo-num input[aria-invalid="true"] { border-color: #e34948; background: color-mix(in srgb, #e34948 8%, var(--paper)); }
.el-demo .ml-demo-readout { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.65; }
.el-demo .ml-demo-readout.el-demo-warn { box-shadow: inset 3px 0 0 #e34948; }
.el-demo-probe { margin: 0; min-height: 2.6em; color: var(--muted); font: .8rem/1.5 var(--ml-mono); }
.el-demo .ml-demo-buttons button { font-size: .84rem; }
.el-demo .ml-demo-body.is-wide .ml-demo-side > .el-full { grid-column: 1 / -1; }
.el-demo .ml-demo-body.is-wide .el-full .ml-demo-readout { columns: 2 250px; column-gap: 32px; }
@media (min-width: 1101px) { .el-demo .ml-demo-body:not(.is-wide) .el-full .ml-demo-readout { columns: auto; } }
.el-demo .el-presets button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .el-demo .el-presets button[aria-pressed="true"] { color: #0f141b; }

/* \tag'li ayrık formüller: MathJax satır içi min-width veriyor; telefonda kesilmesin, kendi kutusunda kaysın */
.el-page .ml-reading mjx-container[display="true"] { min-width: 0 !important; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
/* satır içi formül + ek/noktalama bölünmesin ($x$'in, ($x$)) — build.py nowrap_inline_math */
.el-nw { white-space: nowrap; }

/* Türetmeler açılır kutu (ilk okumada atlanabilir) */
.el-derin { padding: 0 !important; }
.el-derin > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700; }
.el-derin > summary::-webkit-details-marker { display: none; }
.el-derin > summary .k-label { margin: 0; }
.el-derin-title { flex: 1 1 auto; }
.el-derin-hint { font-size: .82rem; font-weight: 600; color: var(--blue); }
.el-derin-hint::before { content: "▸ "; }
.el-derin[open] .el-derin-hint::before { content: "▾ "; }
.el-derin[open] .el-derin-hint { font-size: 0; }
.el-derin[open] .el-derin-hint::before { font-size: .82rem; content: "▾ gizle"; }
.el-derin-body { padding: 0 18px 14px; }
.el-derin-body > :last-child { margin-bottom: 0; }
.el-kisaca { margin-bottom: 28px; }
.el-kisaca-not { font-size: .9rem; color: var(--muted); margin-top: 8px !important; }

/* çıkmış sorular: şekil, tablo, alt sorular */
.exam-fig { margin: .9rem 0 .4rem; text-align: center; }
.exam-fig img { display: inline-block; max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.exam-fig.exam-fig-dar img { max-width: 360px; width: 100%; }
.exam-fig figcaption { margin-top: .4rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.exam-sub { margin: .45rem 0 0; padding-left: 1.5rem; }
.exam-sub > li { margin: .4rem 0; padding-left: .15rem; }
.exam-tablo { overflow-x: auto; margin: .8rem 0; }
.exam-tablo table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.exam-tablo caption { caption-side: top; text-align: left; font-weight: 600; padding-bottom: 4px; font-size: .92rem; }
.exam-tablo th, .exam-tablo td { border: 1px solid var(--line); padding: 4px 8px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-tablo th:first-child, .exam-tablo td:first-child { text-align: left; }
.exam-link { display: inline-block; margin-top: 6px; font-size: .9rem; font-weight: 600; }
