/* ==========================================================================
   Adl Core — single article («تک مقاله») + article content boxes.
   The content boxes are block styles on core blocks, so they also render
   inside the block editor.
   ========================================================================== */

.adl-art, .editor-styles-wrapper, .adl-art__body {
	--adl-a: var(--adl-art-accent, var(--wp--preset--color--accent, #cc9b6a));
	--adl-a-tint: color-mix(in srgb, var(--adl-a) 10%, var(--wp--preset--color--base, #fff));
	--adl-box: var(--adl-art-box, var(--wp--preset--color--surface, #f0f0f0));
	--adl-darkbox: var(--adl-art-dark, var(--wp--preset--color--dark, #322c2c));
	--adl-i: var(--wp--preset--color--ink, #2c2827);
	--adl-m: var(--wp--preset--color--muted, #8a8483);
	--adl-l: var(--wp--preset--color--line, #e8e6e5);
	--adl-b: var(--wp--preset--color--base, #fff);
}
.adl-art { padding-block: clamp(1.2rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.adl-art__wrap { max-width: calc(1240px + 2 * var(--adl-pad)); }
.adl-art a:not(.adl-btn):not(.wp-block-button__link) { color: inherit; }

/* Reading progress */
.adl-art__progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .adl-art__progress { top: 32px; }
.adl-art__progress span { display: block; height: 100%; width: 100%; background: var(--adl-a); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* ---------- Head ---------- */
.adl-art__head { max-width: 900px; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.adl-art__crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .8rem; color: var(--adl-m); }
.adl-art__crumbs a { text-decoration: none; color: var(--adl-m); }
.adl-art__crumbs a:hover { color: var(--adl-a); }
.adl-art__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.adl-art__chip { padding: .3em 1em; border-radius: 999px; font-size: .75rem; text-decoration: none; background: var(--adl-box); color: var(--adl-m) !important; }
.adl-art__chip--accent { background: var(--adl-a-tint); color: var(--adl-a) !important; font-weight: 700; }
.adl-art__title { margin: 0; font-size: var(--adl-art-h1, clamp(1.8rem, 3.4vw, 2.75rem)); line-height: 1.5; font-weight: 900; color: var(--adl-art-h1c, var(--adl-i)); }
.adl-art__lead { margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 2; color: var(--adl-m); max-width: 760px; }
.adl-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; font-size: .8rem; color: var(--adl-m); }
.adl-art__by { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.adl-art__by strong { display: block; color: var(--adl-i); font-size: .9rem; }
.adl-art__by small { display: block; font-size: .75rem; }
.adl-art__dates { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.adl-art__dates .is-updated { color: var(--adl-i); font-weight: 700; }
.adl-avatar { border-radius: 50%; object-fit: cover; flex: none; }
.adl-avatar--letter { display: inline-grid; place-items: center; background: var(--adl-darkbox); color: #fff; font-weight: 800; font-size: .95em; }

/* Reading lab */
.adl-art__lab { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem; border: 1px solid var(--adl-l); border-radius: 14px; background: var(--adl-box); font-size: .8rem; }
.adl-art__lab-title { padding-inline: .5rem; font-size: .78rem; }
.adl-art__fs { display: inline-flex; align-items: center; gap: .3rem; }
.adl-art__fs output { min-width: 3.2em; text-align: center; color: var(--adl-m); }
.adl-art__lab button { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; padding: 0 .9rem; border: 1px solid var(--adl-l); border-radius: 10px; background: var(--adl-b); color: var(--adl-i); font: inherit; font-size: .78rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.adl-art__lab button:hover, .adl-art__lab button[aria-pressed="true"] { border-color: var(--adl-a); color: var(--adl-a); }
.adl-art__listen .i-pause, .adl-art__listen.is-playing .i-play { display: none; }
.adl-art__listen.is-playing .i-pause { display: inline-flex; }
.adl-art__listen svg { display: block; }

/* Cover */
.adl-art__cover { margin: clamp(1.5rem, 3vw, 2.4rem) 0 0; border-radius: 24px; overflow: hidden; background: var(--adl-box); }
.adl-art__cover img { display: block; width: 100%; height: auto; }
.adl-art__cover.is-ratio img { aspect-ratio: var(--adl-art-ratio, 16/9); object-fit: cover; }

/* ---------- Grid ---------- */
.adl-art__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(1.8rem, 3.5vw, 2.8rem); }
.adl-art.has-aside .adl-art__grid { grid-template-columns: minmax(0, 1fr) 290px; }
.adl-art:not(.has-aside) .adl-art__main { max-width: 820px; margin-inline: auto; }
.adl-art__main { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }

/* ---------- Aside ---------- */
.adl-art__aside { display: flex; flex-direction: column; gap: .9rem; position: sticky; top: calc(var(--adl-head-h, 90px) + 1.2rem); align-self: start; max-height: calc(100vh - var(--adl-head-h, 90px) - 2rem); overflow: auto; scrollbar-width: none; padding: 4px; }
.adl-toc { border: 1px solid var(--adl-l); border-radius: 18px; background: var(--adl-b); box-shadow: 0 8px 28px rgba(50, 44, 44, .06); overflow: hidden; }
.adl-toc__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; }
.adl-toc__head strong { display: block; font-size: .92rem; }
.adl-toc__head small { display: block; color: var(--adl-m); font-size: .72rem; }
.adl-ring { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; }
.adl-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.adl-ring circle { fill: none; stroke: var(--adl-l); stroke-width: 3; }
.adl-ring .adl-ring__v { stroke: var(--adl-a); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 * (1 - var(--p, 0))); transition: stroke-dashoffset .2s linear; }
.adl-ring b { font-size: .72rem; }
.adl-ring--sm { width: 26px; height: 26px; }
.adl-toc__list { list-style: none; margin: 0; padding: 0 0 .6rem; counter-reset: none; }
.adl-toc__list a { position: relative; display: flex; gap: .7rem; padding: .62rem 1.1rem; font-size: .82rem; line-height: 1.7; color: var(--adl-m); text-decoration: none; transition: color .2s, background .2s; }
.adl-toc__list a span { flex: none; font-size: .7rem; padding-top: .15em; }
.adl-toc__list a:hover { color: var(--adl-i); }
.adl-toc__list a.is-active { color: var(--adl-i); font-weight: 700; background: var(--adl-a-tint); }
.adl-toc__list a.is-active::before { content: ""; position: absolute; inset-block: .4rem; inset-inline-end: 0; width: 3px; border-radius: 3px; background: var(--adl-a); }
.adl-toc__list a.is-active span { color: var(--adl-a); }
.adl-toc__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--adl-l); }
.adl-toc__stats > * { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .8rem .3rem; font-size: .68rem; color: var(--adl-m); text-decoration: none; }
.adl-toc__stats b { font-size: 1rem; color: var(--adl-i); }
.adl-art__acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.adl-art__acts button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 40px; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); font: inherit; font-size: .78rem; cursor: pointer; transition: border-color .2s, color .2s; }
.adl-art__acts button:hover, .adl-art__acts button.is-on { border-color: var(--adl-a); color: var(--adl-a); }
.adl-art__acts button.is-on path { fill: currentColor; }
.adl-art__card { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border: 1px solid color-mix(in srgb, var(--adl-a) 30%, transparent); border-radius: 18px; background: var(--adl-a-tint); }
.adl-art__card strong { font-size: 1rem; line-height: 1.7; }
.adl-art__card p { margin: 0; font-size: .8rem; line-height: 1.9; color: var(--adl-m); }
.adl-art__card .adl-btn { margin-top: .4rem; }
.adl-art__label { display: block; font-size: .72rem; font-weight: 700; color: var(--adl-a); }

/* Mobile TOC bar */
.adl-art__mbar { display: none; }

/* ---------- Body typography ---------- */
.adl-art__body { --fs: var(--adl-fs-user, var(--adl-art-fs, 17px)); font-size: var(--fs); line-height: 2.1; color: var(--adl-i); }
.adl-art .adl-art__body > * { margin-block: 0 1.25em; }
.adl-art .adl-art__body > :last-child { margin-bottom: 0; }
.adl-art .adl-art__body p { margin-top: 0; }
.adl-art .adl-art__body ul:not([class*="is-style"]) { list-style: disc; }
.adl-art .adl-art__body ol:not([class*="is-style"]) { list-style: decimal; }
.adl-art .adl-art__body li { margin-bottom: .3em; }
.adl-art__body a { color: var(--adl-i); text-decoration: underline; text-decoration-color: var(--adl-a); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.adl-art__body a:hover { color: var(--adl-a); }
.adl-art__body img { border-radius: 16px; }
.adl-art .adl-art__body h2 { position: relative; display: flex; flex-direction: column; gap: .15rem; margin: 2.2em 0 .8em; padding-inline-start: 1rem; font-size: 1.6em; line-height: 1.55; font-weight: 900; scroll-margin-top: calc(var(--adl-head-h, 90px) + 1.5rem); }
.adl-art__body h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .35em .25em; width: 4px; border-radius: 4px; background: var(--adl-a); }
.adl-art__body > h2:first-child, .adl-art__body > .is-style-adl-sum:first-child + h2 { margin-top: 1em; }
.adl-ch { font-size: .42em; font-weight: 700; color: var(--adl-a); letter-spacing: .02em; }
.adl-art .adl-art__body h3 { font-size: 1.2em; line-height: 1.7; margin: 1.6em 0 .6em; }
.adl-art__body ul:not([class*="is-style"]), .adl-art__body ol:not([class*="is-style"]) { padding-inline-start: 1.4em; }
.adl-art__body blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-inline-start: 4px solid var(--adl-a); background: var(--adl-box); border-radius: 0 14px 14px 0; }
.adl-art__body .wp-block-pullquote { border-color: var(--adl-a); }
.adl-art__body .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9em; }
.adl-art__body .wp-block-table td, .adl-art__body .wp-block-table th { border: 1px solid var(--adl-l); padding: .6em .8em; }
.adl-art__body .wp-block-table thead { background: var(--adl-box); }

/* ---------- Content boxes (also used in the editor) ---------- */
.is-style-adl-sum, .is-style-adl-key, .is-style-adl-note, .is-style-adl-quiz, .is-style-adl-next, .is-style-adl-offer {
	--adl-a: var(--adl-art-accent, var(--wp--preset--color--accent, #cc9b6a));
	--adl-a-tint: color-mix(in srgb, var(--adl-a) 10%, var(--wp--preset--color--base, #fff));
	position: relative; border-radius: 18px; padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.8rem) !important; font-size: .94em; line-height: 2;
}
:is(.is-style-adl-sum, .is-style-adl-key, .is-style-adl-note, .is-style-adl-quiz, .is-style-adl-next, .is-style-adl-offer, .is-style-adl-faq) > * { margin-block: 0 .5em; max-width: none !important; margin-inline: 0 !important; }
.is-style-adl-faq > * { margin-block: 0 !important; width: 100%; }
:is(.is-style-adl-sum, .is-style-adl-key, .is-style-adl-note, .is-style-adl-quiz, .is-style-adl-next, .is-style-adl-offer) > :last-child { margin-bottom: 0; }
.adl-box-label { font-size: .75em !important; font-weight: 700; color: var(--adl-a); margin-bottom: .2em !important; }

/* Summary */
.is-style-adl-sum { background: var(--adl-box, var(--wp--preset--color--surface, #f0f0f0)); border: 1px solid var(--wp--preset--color--line, #e8e6e5); }
.is-style-adl-sum .adl-box-title { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.02em; }
.is-style-adl-sum .adl-box-title::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--adl-a); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.is-style-adl-sum ul { list-style: none; padding: 0 !important; margin: .4em 0 0; }
.is-style-adl-sum li { position: relative; padding-inline-start: 1.1em; color: var(--wp--preset--color--muted, #8a8483); }
.is-style-adl-sum li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--ink, #2c2827); }

/* Key point */
.adl-art__body { counter-reset: adlkey; }
.is-style-adl-key { counter-increment: adlkey; display: grid !important; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; background: var(--adl-a-tint); border: 1px solid color-mix(in srgb, var(--adl-a) 25%, transparent); }
.is-style-adl-key::before { content: counter(adlkey, persian) ""; grid-row: 1 / span 9; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--adl-a); color: #fff; font-weight: 800; font-size: 1.05rem; }
.is-style-adl-key > * { grid-column: 2; }
.is-style-adl-key strong { font-size: 1.08em; }

/* Author note */
.is-style-adl-note { background: var(--adl-box, var(--wp--preset--color--surface, #f0f0f0)); padding-inline-start: 3.6rem !important; }
.is-style-adl-note::before { content: ""; position: absolute; inset-inline-start: 1.3rem; top: 1.5rem; width: 20px; height: 20px; background: var(--wp--preset--color--muted, #8a8483); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-style-adl-note .adl-box-label { color: var(--wp--preset--color--ink, #2c2827); }
.is-style-adl-note p:not(.adl-box-label) { color: var(--wp--preset--color--muted, #8a8483); font-size: .92em; }

/* Steps */
ol.is-style-adl-steps { --adl-a: var(--adl-art-accent, var(--wp--preset--color--accent, #cc9b6a)); list-style: none; padding: 0 !important; margin-inline: 0; counter-reset: adlstep; }
ol.is-style-adl-steps > li { position: relative; counter-increment: adlstep; padding-inline-start: 3.6rem; padding-bottom: 1.6rem; line-height: 1.9; color: var(--wp--preset--color--muted, #8a8483); font-size: .92em; }
ol.is-style-adl-steps > li:last-child { padding-bottom: 0; }
ol.is-style-adl-steps > li strong { display: inline-block; color: var(--wp--preset--color--ink, #2c2827); font-size: 1.06em; margin-bottom: .1em; }
ol.is-style-adl-steps > li::before { content: counter(adlstep, persian); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--adl-a); background: var(--wp--preset--color--base, #fff); color: var(--adl-a); font-weight: 800; z-index: 1; }
ol.is-style-adl-steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--adl-a) 35%, transparent); }

/* Quiz */
.is-style-adl-quiz { border: 1px solid var(--wp--preset--color--line, #e8e6e5); background: var(--wp--preset--color--base, #fff); box-shadow: 0 8px 28px rgba(50, 44, 44, .05); }
.is-style-adl-quiz h3 { font-size: 1.15em !important; margin: .2em 0 .8em !important; line-height: 1.7; }
.is-style-adl-quiz ol { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .6rem; counter-reset: adlq; }
.is-style-adl-quiz ol > li { counter-increment: adlq; position: relative; display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--wp--preset--color--line, #e8e6e5); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.is-style-adl-quiz ol > li strong { font-weight: inherit; }
.is-style-adl-quiz ol > li::before { content: counter(adlq, persian); display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--wp--preset--color--surface, #f0f0f0); font-weight: 700; font-size: .85em; }
.is-style-adl-quiz ol > li:nth-child(1)::before { content: "الف"; }
.is-style-adl-quiz ol > li:nth-child(2)::before { content: "ب"; }
.is-style-adl-quiz ol > li:nth-child(3)::before { content: "ج"; }
.is-style-adl-quiz ol > li:nth-child(4)::before { content: "د"; }
.is-style-adl-quiz ol > li:nth-child(5)::before { content: "ه"; }
.is-style-adl-quiz ol > li:hover { border-color: var(--adl-a); }
.is-style-adl-quiz.is-answered ol > li { cursor: default; }
.is-style-adl-quiz ol > li.is-right { border-color: #2e9e6a; background: color-mix(in srgb, #2e9e6a 10%, transparent); }
.is-style-adl-quiz ol > li.is-right::before { background: #2e9e6a; color: #fff; }
.is-style-adl-quiz ol > li.is-wrong { border-color: #c0392b; background: color-mix(in srgb, #c0392b 8%, transparent); }
.is-style-adl-quiz ol > li.is-wrong::before { background: #c0392b; color: #fff; }
.adl-art .is-style-adl-quiz .adl-quiz-why { display: none; margin-top: .8rem !important; padding: .8rem 1rem; border-radius: 12px; background: var(--wp--preset--color--surface, #f0f0f0); font-size: .9em; }
.adl-art .is-style-adl-quiz.is-answered .adl-quiz-why { display: block; animation: adl-fade .4s; }
.adl-art .is-style-adl-quiz ol > li strong { font-weight: inherit; }
.editor-styles-wrapper .is-style-adl-quiz ol > li strong { color: #2e9e6a; }
.editor-styles-wrapper .is-style-adl-quiz .adl-quiz-why { opacity: .7; border-top: 1px dashed currentColor; padding-top: .5rem; }
@keyframes adl-fade { from { opacity: 0; transform: translateY(6px); } }

/* Next chapter */
.is-style-adl-next { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; background: var(--adl-darkbox, var(--wp--preset--color--dark, #322c2c)); color: #fff; }
.is-style-adl-next p { margin: 0 !important; }
.is-style-adl-next strong { font-size: 1.05em; }
.is-style-adl-next .adl-next-go a { display: inline-flex; align-items: center; gap: .4rem; color: #fff !important; text-decoration: none !important; font-size: .85em; white-space: nowrap; }
.is-style-adl-next .adl-next-go a::after { content: "‹"; font-size: 1.3em; line-height: 1; transition: transform .25s; }
.is-style-adl-next .adl-next-go a:hover::after { transform: translateX(-4px); }

/* Offer */
.is-style-adl-offer { background: var(--adl-darkbox, var(--wp--preset--color--dark, #322c2c)); color: #fff; }
.is-style-adl-offer h3 { color: #fff; font-size: 1.35em !important; line-height: 1.7; margin: .2em 0 .6em !important; }
.is-style-adl-offer ul { list-style: disc !important; padding-inline-start: 1.2em !important; color: rgba(255, 255, 255, .8); font-size: .92em; }
.is-style-adl-offer .wp-block-columns { margin: 0; gap: 1.6rem; }
.is-style-adl-offer img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.is-style-adl-offer .wp-block-buttons { display: inline-flex; vertical-align: middle; margin: .8em 0 0; }
.is-style-adl-offer .wp-block-button__link { background: var(--adl-a); color: #fff; border-radius: 12px; font-weight: 800; padding: .75em 1.6em; }
.is-style-adl-offer .wp-block-button__link:hover { background: #fff; color: var(--adl-darkbox, #322c2c); }
.is-style-adl-offer .adl-offer-note { display: inline-block; margin: .8em 1rem 0 0 !important; font-size: .78em; color: rgba(255, 255, 255, .6); vertical-align: middle; }

/* Article FAQ */
.is-style-adl-faq { display: grid; gap: .7rem; }
.is-style-adl-faq .wp-block-details { margin: 0; padding: 0; border-radius: 16px; background: var(--adl-box, var(--wp--preset--color--surface, #f0f0f0)); overflow: hidden; }
.is-style-adl-faq summary { position: relative; list-style: none; padding: 1rem 1.2rem; padding-inline-end: 3.4rem; font-weight: 800; font-size: .95em; cursor: pointer; }
.is-style-adl-faq summary::-webkit-details-marker { display: none; }
.is-style-adl-faq summary::after { content: ""; position: absolute; inset-inline-end: 1rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--wp--preset--color--base, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2.4' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s; }
.is-style-adl-faq details[open] summary::after { transform: rotate(180deg); }
.is-style-adl-faq details > :not(summary) { margin: 0; padding: 0 1.2rem 1rem; color: var(--wp--preset--color--muted, #8a8483); font-size: .9em; }

/* Lock (members only) — editor shows a dashed frame */
.editor-styles-wrapper .is-style-adl-lock { border: 2px dashed var(--wp--preset--color--accent, #cc9b6a); border-radius: 16px; padding: 2.2rem 1.2rem 1rem; position: relative; }
.editor-styles-wrapper .is-style-adl-lock::before { content: "🔒 فقط اعضا"; position: absolute; top: .5rem; inset-inline-start: 1rem; font-size: 12px; font-weight: 700; color: var(--wp--preset--color--accent, #cc9b6a); }
.adl-locked__tease { position: relative; margin: 0 0 1rem !important; color: var(--adl-m); -webkit-mask-image: linear-gradient(#000 10%, transparent); mask-image: linear-gradient(#000 10%, transparent); filter: blur(.4px); user-select: none; }
.adl-locked__box { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; padding: 1.1rem 1.3rem; border: 1px solid color-mix(in srgb, var(--adl-a) 35%, transparent); border-radius: 18px; background: var(--adl-a-tint); }
.adl-locked__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--adl-darkbox); color: var(--adl-a); flex: none; }
.adl-locked__text { flex: 1 1 14rem; display: flex; flex-direction: column; line-height: 1.8; }
.adl-locked__text strong { font-size: .98rem; }
.adl-locked__text span { font-size: .8rem; color: var(--adl-m); }
.adl-locked__form { display: flex; gap: .5rem; flex: 1 1 18rem; }
.adl-locked__form input[type="email"] { flex: 1; min-width: 0; height: 44px; padding: 0 1rem; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); font: inherit; font-size: .85rem; }
.adl-locked__login { width: 100%; font-size: .75rem; color: var(--adl-m) !important; text-decoration: none !important; }
.adl-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- After the article ---------- */
.adl-art__tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.adl-art__tags a { padding: .3em .95em; border-radius: 999px; background: var(--adl-box); font-size: .78rem; text-decoration: none; color: var(--adl-m); }
.adl-art__tags a:hover { color: var(--adl-a); }
.adl-art__fb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding-block: 1.2rem; border-block: 1px solid var(--adl-l); font-size: .9rem; }
.adl-art__fb-btns { display: flex; gap: .5rem; }
.adl-art__fb button, .adl-art__ghost { display: inline-flex; align-items: center; height: 38px; padding: 0 1.1rem; border: 1px solid var(--adl-l); border-radius: 999px; background: var(--adl-b); color: var(--adl-i) !important; font: inherit; font-size: .8rem; text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; }
.adl-art__fb button:hover, .adl-art__ghost:hover { border-color: var(--adl-a); color: var(--adl-a) !important; }
.adl-art__fb-thanks { color: var(--adl-a); font-weight: 700; font-size: .85rem; animation: adl-fade .4s; }
.adl-art__author { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem; border-radius: 20px; background: var(--adl-box); }
.adl-art__author .adl-avatar { border-radius: 18px; }
.adl-art__author-text { flex: 1; min-width: 0; }
.adl-art__author-text strong { display: block; font-size: 1.15rem; }
.adl-art__author-text p { margin: .2rem 0 0; color: var(--adl-m); font-size: .82rem; line-height: 1.9; }
.adl-art__pn { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.adl-art__pn a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; border: 1px solid var(--adl-l); border-radius: 16px; text-decoration: none; transition: border-color .2s, transform .3s var(--adl-ease, ease); }
.adl-art__pn a:hover { border-color: var(--adl-a); transform: translateY(-3px); }
.adl-art__pn small { font-size: .72rem; color: var(--adl-m); }
.adl-art__pn strong { font-size: .9rem; line-height: 1.7; }
.adl-art__pn-next { text-align: left; }
.adl-art__nl { padding: clamp(1.3rem, 3vw, 2rem); border: 1.5px dashed color-mix(in srgb, var(--adl-a) 60%, transparent); border-radius: 22px; background: var(--adl-b); }
.adl-art__nl-title { margin: .3rem 0 .5rem; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.7; font-weight: 900; }
.adl-art__nl p { margin: 0 0 1rem; color: var(--adl-m); font-size: .85rem; line-height: 1.9; }
.adl-art__nl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; }
.adl-art__nl-form label { flex: 1 1 16rem; display: flex; flex-direction: column; gap: .35rem; font-size: .75rem; color: var(--adl-m); }
.adl-art__nl-form input[type="email"] { height: 48px; padding: 0 1rem; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); font: inherit; font-size: .9rem; }
.adl-art__nl-form input:focus, .adl-locked__form input:focus { outline: 2px solid var(--adl-a); outline-offset: 1px; }
.adl-art__nl-form .adl-btn { height: 48px; background: var(--adl-a); }
.adl-subscribe__msg { flex-basis: 100%; font-size: .8rem; color: var(--adl-a); font-weight: 700; }
.adl-subscribe__msg.is-error { color: #c0392b; }
.adl-art__sign { display: block; margin-top: 1rem; font-size: .8rem; color: var(--adl-m); }

/* Comments */
.adl-art__comments .wp-block-comments-title { font-size: 1.25rem; margin: 0 0 1rem; }
.adl-art__comments .wp-block-comment-template { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.adl-art__comments .wp-block-comment-template ol { list-style: none; padding-inline-start: 1.5rem; }
.adl-art__comments .adl-comment { padding: 1rem 1.2rem; margin-bottom: .7rem; border-radius: 16px; background: var(--adl-box); font-size: .88rem; }
.adl-art__comments .adl-comment > .wp-block-group { gap: .8rem; align-items: baseline; }
.adl-art__comments .wp-block-comment-author-name { font-weight: 800; }
.adl-art__comments .wp-block-comment-date { font-size: .72rem; color: var(--adl-m); }
.adl-art__comments .wp-block-comment-reply-link a { font-size: .75rem; color: var(--adl-a); }
.adl-art__comments .comment-respond { padding: 1.4rem; border: 1px solid var(--adl-l); border-radius: 20px; }
.adl-art__comments .comment-reply-title { margin: 0 0 .6rem; font-size: 1.1rem; }
.adl-art__comments textarea, .adl-art__comments input[type="text"], .adl-art__comments input[type="email"], .adl-art__comments input[type="url"] { width: 100%; padding: .7rem 1rem; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); font: inherit; }
.adl-art__comments .form-submit input { padding: .8em 2em; border: 0; border-radius: 999px; background: var(--adl-a); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Focus mode ---------- */
html.adl-focus .wp-block-template-part:has(.adl-header), html.adl-focus .adl-header, html.adl-focus .adl-footer, html.adl-focus .adl-fab,
html.adl-focus .adl-art__aside, html.adl-focus .adl-art__cover, html.adl-focus .adl-art__mbar, html.adl-focus .adl-art__crumbs, html.adl-focus .adl-art__chips,
html.adl-focus .adl-art__nl, html.adl-focus .adl-art__pn, html.adl-focus .adl-art__comments, html.adl-focus .adl-art__author { display: none !important; }
html.adl-focus .adl-art .adl-art__grid { grid-template-columns: minmax(0, 1fr); }
html.adl-focus .adl-art__main, html.adl-focus .adl-art__head { max-width: 720px; margin-inline: auto; }
html.adl-focus .adl-art__lab { position: sticky; top: .6rem; z-index: 20; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
html.adl-focus { --adl-head-h: 0px; }

/* ---------- Dark ---------- */
html[data-theme="dark"] .adl-toc, html[data-theme="dark"] .is-style-adl-quiz { box-shadow: none; }
html[data-theme="dark"] .is-style-adl-next, html[data-theme="dark"] .is-style-adl-offer, html[data-theme="dark"] .adl-locked__icon { background: #0f0d0d; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
	.adl-art.has-aside .adl-art__grid { grid-template-columns: minmax(0, 1fr); }
	.adl-art__aside { position: static; max-height: none; overflow: visible; padding: 0; }
	.adl-art__aside .adl-toc { display: none; }
	.adl-art__aside { order: 2; }
	.adl-art__mbar { display: block; position: sticky; top: calc(var(--adl-head-h, 70px) + .5rem); z-index: 30; margin-top: 1rem; }
	.adl-art__mbar-btn { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .8rem; border: 1px solid var(--adl-l); border-radius: 14px; background: color-mix(in srgb, var(--adl-b) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(50, 44, 44, .08); color: var(--adl-i); font: inherit; font-size: .82rem; text-align: start; cursor: pointer; }
	.adl-art__mbar-now { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
	.adl-art__mbar-caret { transition: transform .25s; }
	.adl-art__mbar-btn[aria-expanded="true"] .adl-art__mbar-caret { transform: rotate(180deg); }
	.adl-art__mbar .adl-toc__list { position: absolute; inset: calc(100% + .4rem) 0 auto; max-height: 60vh; overflow: auto; padding: .4rem 0; border: 1px solid var(--adl-l); border-radius: 14px; background: var(--adl-b); box-shadow: 0 18px 40px rgba(50, 44, 44, .16); }
}
@media (max-width: 782px) {
	.admin-bar .adl-art__progress { top: 0; }
	.adl-art__title { font-size: var(--adl-art-mh1, clamp(1.5rem, 6.4vw, 2rem)); }
	.adl-art__body { --fs: var(--adl-fs-user, var(--adl-art-mfs, 16px)); line-height: 2; }
	.adl-art__body h2 { font-size: 1.4em; }
	.adl-art__lab { width: 100%; }
	.adl-art__lab-title { width: 100%; padding: .2rem .4rem 0; }
	.adl-art__cover { border-radius: 16px; margin-inline: calc(var(--adl-pad) * -0.5); }
	.adl-art__author { flex-wrap: wrap; }
	.adl-art__author .adl-art__ghost { width: 100%; justify-content: center; }
	.adl-art__pn { grid-template-columns: 1fr; }
	.adl-art__pn-next { text-align: start; }
	.adl-art__fb { flex-direction: column; align-items: stretch; text-align: center; }
	.adl-art__fb-btns { justify-content: center; }
	.is-style-adl-next { flex-direction: column; align-items: flex-start !important; }
	.is-style-adl-offer .wp-block-columns { flex-direction: column-reverse; }
	.adl-locked__form { flex-direction: column; }
	ol.is-style-adl-steps > li { padding-inline-start: 3.2rem; }
}
@media print {
	.adl-art__aside, .adl-art__lab, .adl-art__progress, .adl-art__mbar, .adl-art__nl, .adl-art__fb, .adl-art__comments { display: none !important; }
	.adl-art.has-aside .adl-art__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog / archive («وبلاگ و آرشیو»)
   ========================================================================== */
.adl-blog { padding-top: clamp(1.2rem, 3vw, 2.2rem); }
.adl-blog__hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--adl-l); border-radius: 24px; background: var(--adl-b); }
.adl-blog__hero.has-starter { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.adl-blog__intro { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; min-width: 0; }
.adl-blog__head { position: relative; padding-inline-start: 1rem; }
.adl-blog__head::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .2rem; width: 4px; border-radius: 4px; background: var(--adl-a); }
.adl-blog__title { margin: .1rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.4; }
.adl-blog__text { margin: 0; color: var(--adl-m); line-height: 2; font-size: .95rem; max-width: 640px; }
.adl-blog__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.adl-blog__chips a { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .55rem 0 1rem; border: 1px solid var(--adl-l); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.adl-blog__chips a b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .3rem; border-radius: 999px; background: var(--adl-box); font-size: .7rem; color: var(--adl-m); }
.adl-blog__chips a:hover { border-color: var(--adl-a); }
.adl-blog__chips a.is-active { background: var(--adl-darkbox); border-color: var(--adl-darkbox); color: #fff !important; }
.adl-blog__chips a.is-active b { background: var(--adl-a); color: #fff; }
.adl-blog__starter { padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--adl-box); }
.adl-blog__starter ol { list-style: none; margin: .6rem 0 0; padding: 0; }
.adl-blog__starter li + li { border-top: 1px solid var(--adl-l); }
.adl-blog__starter a { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.7; transition: color .2s; }
.adl-blog__starter a:hover { color: var(--adl-a) !important; }
.adl-blog__starter b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--adl-b); color: var(--adl-a); font-size: .8rem; }

/* Featured */
.adl-blog__feat { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: clamp(1.4rem, 3vw, 2rem); border-radius: 24px; overflow: hidden; background: var(--adl-darkbox); color: #fff; }
.adl-blog__feat-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.5rem, 3.5vw, 2.8rem); }
.adl-blog__feat-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.adl-blog__feat-chips span { padding: .3em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .75rem; }
.adl-blog__feat-chips .is-accent { background: var(--adl-a); color: #fff; font-weight: 700; }
.adl-blog__feat h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.6; font-weight: 900; }
.adl-blog__feat h2 a { color: #fff !important; text-decoration: none; }
.adl-blog__feat p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 2; }
.adl-blog__feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; padding-top: .6rem; }
.adl-blog__feat .adl-bcard__by small { color: rgba(255, 255, 255, .6); }
.adl-blog__feat .adl-bcard__by strong { color: #fff; }
.adl-blog__feat .adl-avatar--letter { background: #fff; color: var(--adl-darkbox); }
.adl-blog__feat-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--adl-a) !important; font-weight: 800; text-decoration: none; font-size: .9rem; }
.adl-blog__feat-more svg { transition: transform .25s; }
.adl-blog__feat-more:hover svg { transform: translateX(-4px); }
.adl-blog__feat-img { position: relative; display: block; min-height: 300px; background: #1b1918; overflow: hidden; }
.adl-blog__feat-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: filter .5s, transform .8s var(--adl-ease, ease); }
.adl-blog__feat:hover .adl-blog__feat-img img { filter: none; transform: scale(1.03); }

/* Toolbar */
.adl-blog__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; font-size: .82rem; }
.adl-blog__bar > strong { margin-inline-end: auto; }
.adl-blog__sort { display: flex; align-items: center; gap: .3rem; color: var(--adl-m); }
.adl-blog__sort a { padding: .45em .95em; border-radius: 10px; text-decoration: none; color: var(--adl-i) !important; }
.adl-blog__sort a.is-active { background: var(--adl-a-tint); color: var(--adl-a) !important; font-weight: 700; }
.adl-blog__views { display: flex; gap: .35rem; padding-inline-start: 1rem; border-inline-start: 1px solid var(--adl-l); }
.adl-blog__views button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); cursor: pointer; }
.adl-blog__views button[aria-pressed="true"] { background: var(--adl-darkbox); border-color: var(--adl-darkbox); color: #fff; }

/* Cards */
.adl-blog__grid { display: grid; grid-template-columns: repeat(var(--adl-cols, 3), minmax(0, 1fr)); gap: 1.2rem; }
.adl-blog.has-aside .adl-blog__grid { grid-template-columns: repeat(min(var(--adl-cols, 3), 3), minmax(0, 1fr)); }
.adl-bcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--adl-l); border-radius: 20px; overflow: hidden; background: var(--adl-b); transition: transform .35s var(--adl-ease, ease), box-shadow .35s; }
.adl-bcard:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(50, 44, 44, .09); }
.adl-bcard__img { display: block; aspect-ratio: var(--adl-bratio, 16/10); background: var(--adl-box); overflow: hidden; }
.adl-bcard__img img, .adl-bcard__noimg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--adl-ease, ease); }
.adl-bcard:hover .adl-bcard__img img { transform: scale(1.05); }
.adl-bcard__badge { position: absolute; top: calc(var(--adl-bimg-h, 0px) + .8rem); inset-inline-start: .8rem; z-index: 2; padding: .3em .9em; border-radius: 8px; background: var(--adl-a); color: #fff !important; font-size: .72rem; font-weight: 700; text-decoration: none; }
.adl-bcard__video { position: absolute; top: .8rem; inset-inline-end: 3.6rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .3em .8em; border-radius: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; }
.adl-bcard__save { position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .92); color: var(--adl-i); cursor: pointer; transition: color .2s, transform .2s; }
html[data-theme="dark"] .adl-bcard__save { background: rgba(27, 25, 24, .85); color: #fff; }
.adl-bcard__save:hover { transform: scale(1.06); }
.adl-bcard__save.is-on { color: var(--adl-a); }
.adl-bcard__save.is-on path { fill: currentColor; }
.adl-bcard__body { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.1rem 1.15rem 1rem; }
.adl-bcard__time { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--adl-m); }
.adl-bcard__title { margin: 0; font-size: 1.02rem; line-height: 1.8; font-weight: 800; }
.adl-bcard__title a { text-decoration: none; }
.adl-bcard__title a:hover { color: var(--adl-a) !important; }
.adl-bcard__ex { margin: 0; color: var(--adl-m); font-size: .8rem; line-height: 1.95; }
.adl-bcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--adl-l); }
.adl-bcard__by { display: flex; align-items: center; gap: .55rem; min-width: 0; text-decoration: none; }
.adl-bcard__by strong { display: block; font-size: .8rem; }
.adl-bcard__by small { display: block; font-size: .7rem; color: var(--adl-m); }
.adl-bcard__go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-inline-start: auto; border-radius: 50%; background: var(--adl-box); color: var(--adl-i) !important; transition: background .25s, color .25s; }
.adl-bcard:hover .adl-bcard__go { background: var(--adl-a); color: #fff !important; }

/* Badge sits at the bottom of the image: put it after the image via grid trick */
.adl-bcard { display: grid; grid-template-rows: auto 1fr; }
.adl-bcard__img { grid-row: 1; grid-column: 1; }
.adl-bcard__badge { position: relative; top: auto; grid-row: 1; grid-column: 1; align-self: end; justify-self: start; margin: .8rem; }
.adl-bcard__body { grid-row: 2; grid-column: 1; }

/* List view */
.adl-blog[data-view="list"] .adl-blog__grid { grid-template-columns: minmax(0, 1fr); }
.adl-blog[data-view="list"] .adl-bcard { grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); grid-template-rows: 1fr; }
.adl-blog[data-view="list"] .adl-bcard__img { position: relative; grid-row: 1; height: auto; aspect-ratio: auto; min-height: 190px; }
.adl-blog[data-view="list"] .adl-bcard__img img { position: absolute; inset: 0; }
.adl-blog[data-view="list"] .adl-bcard__badge { grid-row: 1; }
.adl-blog[data-view="list"] .adl-bcard__body { grid-row: 1; grid-column: 2; padding: 1.2rem 1.4rem; }
.adl-blog[data-view="list"] .adl-bcard__save { inset-inline-end: auto; inset-inline-start: calc(34% - 3.2rem); }
.adl-blog[data-view="list"] .adl-bcard__video { display: none; }

/* Newsletter strip */
.adl-blog__nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 1.2rem 2rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 22px; background: var(--adl-a-tint); }
.adl-blog__nl h2 { margin: 0 0 .3rem; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.7; font-weight: 900; }
.adl-blog__nl p { margin: 0; color: var(--adl-m); font-size: .82rem; }
.adl-blog__nl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; }
.adl-blog__nl-form label { flex: 1 1 14rem; display: flex; flex-direction: column; gap: .3rem; font-size: .72rem; color: var(--adl-m); }
.adl-blog__nl-form input[type="email"] { height: 48px; padding: 0 1rem; border: 1px solid var(--adl-l); border-radius: 12px; background: var(--adl-b); color: var(--adl-i); font: inherit; }
.adl-blog__nl-form .adl-btn { height: 48px; background: var(--adl-a); }

/* Pagination */
.adl-blog__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.adl-blog__pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border: 1px solid var(--adl-l); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--adl-i) !important; background: var(--adl-b); transition: border-color .2s; }
.adl-blog__pages a.page-numbers:hover { border-color: var(--adl-a); }
.adl-blog__pages .page-numbers.current { background: var(--adl-a); border-color: var(--adl-a); color: #fff !important; }
.adl-blog__pages .dots { border: 0; background: none; }
.adl-blog .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.adl-blog__empty { padding: 2rem; border-radius: 20px; background: var(--adl-box); text-align: center; }

/* Sidebar boxes */
.adl-art .adl-blog__aside { gap: 1rem; position: static; max-height: none; overflow: visible; }
.adl-wbox { padding: 1.2rem 1.3rem; border: 1px solid var(--adl-l); border-radius: 20px; background: var(--adl-b); }
.adl-wbox__t { position: relative; margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--adl-l); font-size: 1rem !important; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.adl-wbox__t::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--adl-a); }
.adl-wsearch { position: relative; }
.adl-wsearch input[type="search"] { width: 100%; height: 46px; padding: 0 1rem; padding-inline-end: 2.8rem; border: 1px solid var(--adl-l); border-radius: 14px; background: var(--adl-box); color: var(--adl-i); font: inherit; font-size: .85rem; }
.adl-wsearch button { position: absolute; inset-inline-end: .4rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--adl-m); cursor: pointer; }
.adl-wcats { list-style: none; margin: 0; padding: 0; }
.adl-wcats li + li { border-top: 1px solid var(--adl-l); }
.adl-wcats a { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; text-decoration: none; font-size: .88rem; transition: color .2s; }
.adl-wcats a b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--adl-box); font-size: .7rem; color: var(--adl-m); }
.adl-wcats a:hover, .adl-wcats a.is-active { color: var(--adl-a) !important; font-weight: 700; }
.adl-wcats a.is-active b { background: var(--adl-a); color: #fff; }
.adl-wpop { list-style: none; margin: 0; padding: 0; }
.adl-wpop li + li { margin-top: 1rem; }
.adl-wpop a { display: flex; gap: .9rem; text-decoration: none; }
.adl-wpop b { flex: none; width: 1.6rem; font-size: 1.8rem; line-height: 1; font-weight: 900; color: color-mix(in srgb, var(--adl-m) 35%, transparent); }
.adl-wpop strong { display: block; font-size: .84rem; line-height: 1.85; transition: color .2s; }
.adl-wpop a:hover strong { color: var(--adl-a); }
.adl-wpop small { display: block; font-size: .7rem; color: var(--adl-m); }
.adl-wtags { display: flex; flex-wrap: wrap; gap: .45rem; }
.adl-wtags a { padding: .4em .9em; border-radius: 999px; background: var(--adl-box); font-size: .75rem; text-decoration: none; color: var(--adl-m) !important; transition: color .2s, background .2s; }
.adl-wtags a:hover { background: var(--adl-a-tint); color: var(--adl-a) !important; }
.adl-blog__card { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.3rem; border-radius: 20px; background: var(--adl-darkbox); color: #fff; }
.adl-blog__card strong { font-size: 1.15rem; }
.adl-blog__card p { margin: 0 0 .4rem; color: rgba(255, 255, 255, .7); font-size: .8rem; line-height: 1.9; }

@media (max-width: 1200px) {
	.adl-blog.has-aside .adl-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.adl-blog__hero.has-starter { grid-template-columns: minmax(0, 1fr); }
	.adl-blog__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
	.adl-blog .adl-art__aside .adl-toc { display: block; }
}
@media (max-width: 782px) {
	.adl-blog__hero { padding: 1.1rem; border-radius: 18px; }
	.adl-blog__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.1rem; padding-inline: 1.1rem; width: calc(100% + 2.2rem); }
	.adl-blog__chips a { flex: none; }
	.adl-blog__feat { grid-template-columns: 1fr; }
	.adl-blog__feat-img { order: -1; min-height: 0; aspect-ratio: 16/10; }
	.adl-blog__feat-img img { position: static; }
	.adl-blog__grid, .adl-blog.has-aside .adl-blog__grid { grid-template-columns: minmax(0, 1fr); }
	.adl-blog__bar > strong { width: 100%; }
	.adl-blog__sort { overflow-x: auto; }
	.adl-blog__views { display: none; }
	.adl-blog[data-view="list"] .adl-bcard { grid-template-columns: 38% minmax(0, 1fr); }
	.adl-blog[data-view="list"] .adl-bcard__img { min-height: 120px; }
	.adl-blog[data-view="list"] .adl-bcard__ex, .adl-blog[data-view="list"] .adl-bcard__badge, .adl-blog[data-view="list"] .adl-bcard__save { display: none; }
	.adl-blog[data-view="list"] .adl-bcard__body { padding: .8rem; }
	.adl-blog__nl { grid-template-columns: 1fr; }
}
