/* Articles: progress bar, header, table of contents, content components, FAQ, share, author, related */
.art-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; pointer-events: none; }
.art-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .1s linear; }
[dir=rtl] .art-progress i { margin-inline-start: 0; }
.art-head { margin-bottom: 18px; }
.art-crumbs { color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.art-crumbs a { color: var(--ink-2); font-weight: 600; }
.art-crumbs a:hover { color: var(--brand); }
.art-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; margin: 6px 0 16px; }
.art-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.art-meta b { color: var(--ink); }
.art-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #fff3ef, #ffe8ec); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.art-avatar.big { width: 56px; height: 56px; font-size: 1.5rem; }
.art-toc { margin: 0 0 26px; padding: 16px 20px; }
.art-toc summary { cursor: pointer; list-style: none; }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc summary::after { content: ' ▾'; color: var(--muted); }
.art-toc[open] summary::after { content: ' ▴'; }
.art-toc ol, .art-toc-side ol { margin: 10px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.art-toc a, .art-toc-side a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.art-toc a:hover, .art-toc-side a:hover, .art-toc-side a.on { color: var(--brand); }
.art-side { position: sticky; top: 90px; }
.art-toc-side ol { font-size: .9rem; max-height: 52vh; overflow: auto; }
@media (min-width: 1001px) { .art-toc { display: none; } }
@media (max-width: 1000px) { .art-toc-side { display: none; } .art-side { position: static; } }

.art-body { font-size: 1.08rem; line-height: 1.8; color: #2a3650; }
.art-body p { margin: 0 0 1.1em; }
.art-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.art-body h3 { font-size: 1.18rem; margin: 1.4em 0 .5em; }
.art-body ul, .art-body ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.art-body li { margin-bottom: .45em; }
.art-body strong { color: var(--ink); }
.art-body table { font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; }
.art-body th { background: #f1f3f8; color: var(--ink); }
.art-body .table-wrap { overflow-x: auto; margin: 1em 0 1.4em; }
.art-body figure { margin: 1.4em 0; }
.art-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* Content boxes the posts use */
.art-body .tldr { background: linear-gradient(135deg, #f4f8ff, #fff); border: 1px solid #dfe8fb; border-radius: 16px; padding: 18px 22px; margin: 0 0 1.6em; }
.art-body .tldr > strong:first-child, .art-body .tldr > b:first-child { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #3557a6; margin-bottom: 6px; }
.art-body .tldr ul { margin: 0; }
.art-body .tip, .art-body .warn, .art-body .note { border-radius: 14px; padding: 14px 18px; margin: 1.2em 0; border-inline-start: 4px solid; }
.art-body .tip { background: var(--good-bg); border-color: var(--good); }
.art-body .warn { background: #fff6e5; border-color: #f0a500; }
.art-body .note { background: #f4f5f9; border-color: #9aa4b6; }
.art-body .tip > b:first-child, .art-body .warn > b:first-child, .art-body .note > b:first-child { display: block; margin-bottom: 4px; color: var(--ink); }
.art-body .tip p:last-child, .art-body .warn p:last-child, .art-body .note p:last-child { margin: 0; }
.art-body .cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 18px; padding: 20px 24px; margin: 1.8em 0; }
.art-body .cta-box p { margin: 0; color: rgba(255,255,255,.85); font-size: 1rem; }
.art-body .cta-box b { color: #fff; display: block; font-size: 1.12rem; margin-bottom: 2px; }
.art-body .cta-box a.btn { text-decoration: none; color: #fff; }
.art-body .cta-box a.btn:hover { color: #fff; }
.art-body .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.2em 0 1.6em; padding: 0; list-style: none; }
.art-body .facts li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; font-size: .92rem; }
.art-body .facts > p { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; font-size: .95rem; }
.art-body .facts li b { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.art-body .faq { margin-top: 2.2em; }
.art-body .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.art-body .faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.art-body .faq summary::-webkit-details-marker { display: none; }
.art-body .faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.art-body .faq details[open] summary::after { content: '−'; }
.art-body .faq details > *:not(summary) { margin: 0 0 14px; }
.art-body .pull { font-size: 1.25rem; font-weight: 700; color: var(--ink); border-inline-start: 4px solid var(--brand); padding: 4px 18px; margin: 1.6em 0; line-height: 1.5; }

.art-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 30px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-share .btn { padding: 8px 14px; font-size: .88rem; }
.art-author { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.art-author p { margin: 4px 0 0; }
.art-related { margin: 10px 0 30px; }
.art-rel { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; color: var(--ink); }
.art-rel img, .art-rel-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #e9eefb, #fdeef0); display: grid; place-items: center; font-size: 2rem; }
.art-rel b, .art-rel small { padding: 0 14px; }
.art-rel:hover { color: var(--brand); box-shadow: var(--shadow); }
@media (max-width: 640px) { .art-body { font-size: 1.03rem; } .art-related .grid.three { grid-template-columns: 1fr; } }

/* honeypot: keep off-screen without causing RTL horizontal scroll */
.hp{position:absolute!important;left:0!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
