/* Scoped additions for chapters of the existing TERAZİ I record. */
.terazi-chapter,.terazi-book-toc{--chapter-gold:#967744;--chapter-navy:#142d42}
.terazi-chapter .article-hero-inner{max-width:1080px}
.terazi-chapter h1{max-width:20ch;text-wrap:balance}
.terazi-book-toc{padding:24px;margin:32px auto;border:1px solid #d9ccba;border-radius:12px;background:#faf7f0;max-width:1050px;color:#142d42}
.terazi-book-toc h2{font-size:1.4rem;margin:0 0 16px}
.terazi-book-toc ol{padding-left:1.5em;display:grid;gap:16px}
.terazi-book-toc a{color:inherit;text-underline-offset:4px}
.terazi-book-toc small{display:block;margin-top:4px;line-height:1.5}
.terazi-draft{border-left:3px solid #967744;padding:12px 16px;background:#f2eadb;color:#142d42;font:500 15px/1.6 system-ui,sans-serif}
.terazi-layer,.terazi-credit,.terazi-evidence,.terazi-verse-source{font-family:system-ui,sans-serif;font-size:.73em;line-height:1.65}
.terazi-layer{font-weight:650;letter-spacing:.03em;margin:0 0 .5em!important}
.terazi-credit{opacity:.85}.terazi-subtitle{font-style:italic}
.terazi-verse{margin:1.4em 0;padding:1.05em;border-block:1px solid #a98a5966;background:#ac8a5310;break-inside:auto}
.terazi-arabic{font-family:"Noto Naskh Arabic","Traditional Arabic",serif!important;font-size:1.5em!important;line-height:2!important;text-align:right;direction:rtl;unicode-bidi:isolate;letter-spacing:normal!important;word-spacing:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.terazi-transliteration{font-size:.9em;font-style:italic}.terazi-meaning{font-size:1em}
.terazi-verdict,.terazi-question{margin:1.5em 0;padding:1em 1.15em;border-left:3px solid #a98a59;background:#ac8a5310;break-inside:auto}
.terazi-evidence{display:flex;flex-wrap:wrap;align-items:center;gap:.3em 1em;margin:-.25em 0 1.5em;border-top:1px solid #a98a5930;padding-top:.4em}
.terazi-evidence a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}
.terazi-source-entry{margin:1em 0;overflow-wrap:anywhere}.terazi-source-group+.terazi-source-group{margin-top:2.5em}
.terazi-chapter .reading-content{max-width:72ch;min-width:0;overflow-wrap:anywhere}
.terazi-chapter .reading-content section{scroll-margin-top:100px}
.terazi-chapter .reading-aside{align-self:start}.terazi-chapter .reading-aside a{display:block;line-height:1.55;padding:8px 0}
.terazi-chapter .article-end-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:40px}
.terazi-panel{box-sizing:border-box;width:min(700px,calc(100vw - 24px));max-height:85dvh;padding:24px;border:1px solid #c8b693;border-radius:12px;background:#fcfaf5;color:#142d42;font:18px/1.8 system-ui,sans-serif;overflow:auto;overflow-wrap:anywhere}
.terazi-panel::backdrop{background:#122c426b}.terazi-panel button{min-height:44px;padding:10px 16px;border-radius:6px;border:1px solid #b8a07a;background:transparent;color:inherit;cursor:pointer}
.terazi-panel-header{display:flex;align-items:start;justify-content:space-between;gap:16px}.terazi-panel-header h2{font-size:1.2em;margin:0}
.terazi-toc-group{border-block-end:1px solid #a98a5944;padding-block:12px}.terazi-toc-group summary{cursor:pointer;min-height:44px;line-height:1.5}
.reader[data-terazi="true"] .running-head{align-items:start;gap:12px}.reader[data-terazi="true"] #chapter-label{white-space:normal;line-height:1.45}
.reader[data-terazi="true"] .book-content .terazi-evidence{font-size:.7em}.reader[data-terazi="true"] .book-content .terazi-verse p{margin-bottom:.65em}
.reader[data-theme="night"] .terazi-verse,.reader[data-theme="night"] .terazi-question,.reader[data-theme="night"] .terazi-verdict{background:#c6a66b0d}
.reader[data-terazi="true"] #reader-end button,.reader[data-terazi="true"] #reader-end a{white-space:normal;line-height:1.5;min-height:44px}
@media(max-width:600px){.terazi-book-toc{margin:24px 16px;padding:18px}.terazi-chapter .reading-layout{display:block}.terazi-chapter .reading-aside{margin-bottom:28px}.terazi-verse{padding:.75em}.terazi-panel{padding:18px}.reader[data-terazi="true"] .running-head>span:last-child{display:none}.terazi-chapter h1{font-size:clamp(2rem,8vw,3rem)}}

.terazi-local-toc{margin-block:20px;color:inherit}.terazi-local-toc summary{cursor:pointer;min-height:44px;line-height:1.6;padding:10px 0;font-weight:600}.terazi-local-toc .terazi-book-toc{margin:12px 0}.terazi-next-chapter{margin-block:24px}.terazi-next-chapter a,.terazi-next-chapter button{white-space:normal;line-height:1.6;min-height:44px;max-width:100%}

/* Keep chapter 3B layer labels with the text they introduce. */
.terazi-verse[data-layer]>.terazi-layer{break-after:avoid;break-inside:avoid}
