/* Articles section — sits on lumina2.css + v5.css + refine-v5.css + v6.css. Generated pages: tools/make-articles.py */
.art-hero{padding-block:72px}
.art-hero .lead{max-width:62ch}
.art-cat{padding-block:56px}
.art-list{display:grid;gap:0;border-top:1px solid var(--line)}
.art-row{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"kind title go" "kind sum go";gap:4px 18px;align-items:center;padding:18px 8px;border-bottom:1px solid var(--line);color:var(--ink)}
.art-row:hover{background:#fff}
.art-row .art-kind{grid-area:kind;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--violet);width:72px}
.art-row b{grid-area:title;font-size:18px;font-weight:700}
.art-row .small{grid-area:sum;max-width:70ch}
.art-row .art-go{grid-area:go;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--lav);color:var(--violet)}
.art-head{padding:56px 0 32px;background:var(--cream)}
.art-head .h2{max-width:22ch}
.art-meta{font-size:14px;color:var(--muted);margin-top:14px}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:14px}.crumbs a{color:var(--violet)}
.art-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;padding-block:24px 72px;align-items:start}
.art-body{max-width:68ch;font-size:17px;line-height:1.7}
.art-body h2{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:40px 0 12px;scroll-margin-top:90px}
.art-body h3{font-size:20px;font-weight:700;margin:28px 0 8px}
.art-body p{margin:0 0 16px}
.art-body ul{margin:0 0 16px;padding-inline-start:22px;list-style:disc}
.art-body li{margin-bottom:8px}
.art-body a{color:var(--violet);text-decoration:underline;text-underline-offset:3px}
.art-call{margin:24px 0;padding:18px 22px;border-inline-start:4px solid var(--sun);background:#fff;border-radius:0 12px 12px 0;font-weight:600}
.art-faq{margin-top:40px}.art-faq h2{font-size:22px}
.art-cta{margin-top:40px;background:var(--violet-deep);color:var(--on-violet);border:0}
.art-cta .h3{color:#fff;margin:6px 0 8px}.art-cta .small{color:var(--on-violet-muted)}.art-cta .btn{margin-top:14px}
.art-side{position:sticky;top:90px;display:grid;gap:20px}
.art-side>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px}
.art-side b{display:block;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.art-toc ol{padding-inline-start:18px;margin:0;font-size:14.5px;display:grid;gap:6px}.art-toc a{color:var(--ink)}
.art-rel ul{display:grid;gap:8px;font-size:15px}
.art-join .btn{margin-top:10px}
@media (max-width:900px){.art-grid{grid-template-columns:1fr}.art-side{position:static}.art-row{grid-template-columns:1fr auto;grid-template-areas:"kind go" "title go" "sum go"}}
@media (max-width:640px){.art-hero,.art-head{padding-block:40px 24px}.art-body{font-size:16px}.art-body h2{font-size:22px}}

/* v1.1: index extras */
.art-hero .crumbs{color:var(--on-violet-muted);margin-bottom:18px}.art-hero .crumbs a{color:#fff}
.art-count{display:inline-block;margin-inline-start:8px;padding:2px 8px;border-radius:999px;background:var(--lav);color:var(--violet);font-size:11px;letter-spacing:.04em;text-transform:none;vertical-align:middle}
.art-az{padding-block:20px;border-bottom:1px solid var(--line)}
.art-az ul{display:flex;flex-wrap:wrap;gap:8px 10px;margin:10px 0 0;padding:0;list-style:none}
.art-az a{display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:600}
.art-az a:hover{border-color:var(--violet);color:var(--violet)}
.art-suggest{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
/* v1.1: article extras */
.art-lang{margin:16px 0 0;font-size:15px;color:var(--on-violet-muted)}.art-lang a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.art-where li a b{display:inline;font-size:15px;letter-spacing:0;text-transform:none;color:inherit;margin:0;font-weight:700}
.art-twin{margin:10px 0 0;font-size:14px;color:var(--muted)}.art-twin a{color:var(--violet);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.art-meta time{white-space:nowrap}
.art-rel li{display:grid;gap:2px}.art-rel li a{color:var(--ink);font-weight:600;line-height:1.35}.art-rel li small{font-size:12px;color:var(--muted)}
.art-where ul{display:grid;gap:12px;margin:0;padding:0;list-style:none;font-size:14.5px}
.art-where li{display:grid;gap:2px}.art-where li a{color:var(--violet)}.art-where li span{color:var(--muted);font-size:13.5px;line-height:1.45}
.art-author-in{display:flex;gap:14px;align-items:flex-start}
.art-author-in img{width:72px;height:96px;object-fit:cover;object-position:top;border-radius:12px;flex:none;background:var(--lav)}
.art-author-in strong{display:block;font-size:16px;line-height:1.2}
.art-author-in>div>.en{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.art-author-in .small{margin:8px 0 6px;line-height:1.5}
.art-author-in .arrow-link{font-size:14px;font-weight:700;color:var(--violet)}
.art-side .arrow-link .ico{width:16px;height:16px;vertical-align:-3px}
/* Arabic (RTL) typography */
html[dir=rtl] .art-body,html[dir=rtl] .art-head .lead,html[dir=rtl] .art-side,html[dir=rtl] .art-row,html[dir=rtl] .art-hero .lead{font-family:var(--f-ar)}
html[dir=rtl] .art-body{text-align:start;line-height:1.9}
html[dir=rtl] .art-body h2,html[dir=rtl] .art-body h3,html[dir=rtl] .art-head .h2,html[dir=rtl] .art-hero .h2,html[dir=rtl] .art-cat .h2,html[dir=rtl] .art-row b{font-family:var(--f-ar);letter-spacing:0;line-height:1.45}
html[dir=rtl] .art-body .en,html[dir=rtl] .art-head .en,html[dir=rtl] .art-side .en,html[dir=rtl] .art-row .en,html[dir=rtl] .art-az .en{direction:ltr;unicode-bidi:isolate;font-family:var(--f-display)}
html[dir=rtl] .art-body li .en,html[dir=rtl] .art-body p .en{font-size:.97em}
html[dir=rtl] .art-call{border-inline-start:4px solid var(--sun);border-radius:12px 0 0 12px}
html[dir=rtl] .art-row .art-go svg,html[dir=rtl] .art-cta .btn svg,html[dir=rtl] .art-side .arrow-link svg{transform:scaleX(-1)}
html[dir=rtl] .art-meta .en{font-size:.95em}
@media (max-width:640px){.art-author-in img{width:60px;height:80px}}

/* v1.2 · four-step decision cycle inside an article (figure.art-cycle) */
.art-cycle{margin:32px 0;padding:22px 22px 18px;background:#fff;border:1px solid rgba(36,24,122,.12);border-radius:16px}
.art-cycle ol{list-style:none;counter-reset:cy;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.art-cycle li{counter-increment:cy;position:relative;padding:14px 14px 14px 14px;background:#f6f4fd;border-radius:12px;display:flex;flex-direction:column;gap:6px;font-size:.95rem;line-height:1.45}
.art-cycle li::before{content:"0" counter(cy);font-weight:800;font-size:.8rem;letter-spacing:.06em;color:#4430BC}
.art-cycle li strong{color:#24187A;font-size:1rem}
.art-cycle li span{color:#4a4666}
.art-cycle figcaption{margin-top:14px;font-size:.9rem;color:#5d5678;line-height:1.5}
@media (max-width:760px){.art-cycle ol{grid-template-columns:1fr}}
html[dir=rtl] .art-cycle li{padding:14px}
/* v1.3 · questions & answers (details) inside the article body */
.art-body details.art-q{border:1px solid var(--line,#DDD6E8);border-radius:12px;padding:0 16px;margin:10px 0;background:#fff}
.art-body details.art-q summary{cursor:pointer;font-weight:700;padding:13px 0;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
.art-body details.art-q summary::-webkit-details-marker{display:none}
.art-body details.art-q summary::after{content:"+";font-size:20px;line-height:1;color:var(--violet,#4430BC);transition:transform .2s}
.art-body details.art-q[open] summary::after{transform:rotate(45deg)}
.art-body details.art-q>p,.art-body details.art-q>ul{margin:0 0 14px}
/* v1.4 · articles list: one flat list, title always visible on hover (colour change only) */
.art-list .art-row{grid-template-columns:150px minmax(0,1fr) 40px}
.art-list .art-row .art-kind{width:auto;line-height:1.3}
.art-list .art-row b,.art-list .art-row:hover b{background-image:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;transition:color .2s}
.art-list .art-row:hover b{color:var(--violet)}
.on-dark .art-list .art-row:hover b{color:var(--sun)}
@media (max-width:900px){.art-list .art-row{grid-template-columns:minmax(0,1fr) 40px}}

/* v1.5 · tables inside articles (comparison and example tables) */
.art-body table{width:100%;border-collapse:separate;border-spacing:0;margin:26px 0;font-size:.95rem;line-height:1.5;background:#fff;border:1px solid rgba(36,24,122,.14);border-radius:14px;overflow:hidden}
.art-body th{background:#f6f4fd;color:#24187A;text-align:start;font-weight:700;padding:11px 14px;font-size:.88rem;vertical-align:bottom}
.art-body td{padding:11px 14px;border-top:1px solid #eee9f5;vertical-align:top;color:#2b2550}
.art-body tbody tr:nth-child(even) td{background:#fcfbff}
.art-body td:first-child{font-weight:600;color:#24187A}
@media (max-width:700px){.art-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.art-body th,.art-body td{min-width:150px}}

/* v1.5 · dark theme (body.glow): the hovered article row was white with a white title; use a soft glass highlight and a yellow title instead */
body.glow .art-row:hover{background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.04))}
body.glow main .art-list .art-row:hover b,body.glow main .art-row:hover b{color:#FAE559!important;-webkit-text-fill-color:#FAE559}
body.glow main .art-row:hover .small{color:#E4DFFB}

/* v1.6 · pictures inside articles, three-step cycles, and dark-theme links inside light cards */
.art-body figure{margin:30px 0}
.art-body figure>img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid rgba(36,24,122,.12);background:#FBF8F1}
.art-body figure>figcaption{margin-top:10px;font-size:.92rem;line-height:1.5;color:#5d5678}
.art-cycle ol:has(>li:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.art-cycle ol:has(>li:nth-child(6):last-child){grid-template-columns:repeat(3,1fr)}
@media (max-width:760px){.art-cycle ol:has(>li:nth-child(3):last-child),.art-cycle ol:has(>li:nth-child(6):last-child){grid-template-columns:1fr}}
.art-body hr{border:0;border-top:1px solid var(--line,#DDD6E8);margin:40px 0}
body.glow main .art-body figure>figcaption{color:#D9D2FF}
body.glow main .art-cycle li::before{color:#FAE559}

/* v1.7 · rich article editor (Admin → Articles): colour spans, picture placement, buttons, violet callout.
   Only these class tokens survive article-publish.php clean_html(). Ordered lists: direct children only, so step cards (.art-cycle) and the quiz keep their own look. */
.art-body>ol{margin:0 0 16px;padding-inline-start:24px;list-style:decimal}
.art-body>ol li{margin-bottom:8px}
.art-body blockquote{margin:24px 0;padding:4px 0 4px 18px;border-inline-start:3px solid #C9BEFF;color:#3b3466;font-style:italic}
.art-body .art-c-violet{color:#4430BC;font-weight:600}
.art-body .art-c-sun{background:linear-gradient(transparent 12%,#FAE559 12%,#FAE559 88%,transparent 88%);color:#160C4E;padding:0 .15em;border-radius:3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.art-body figure.art-img-left,.art-body figure.art-img-right{width:44%;margin:6px 0 16px}
.art-body figure.art-img-left{float:left;margin-inline-end:24px}
.art-body figure.art-img-right{float:right;margin-inline-start:24px}
.art-body figure.art-img-wide{margin-inline:-6%;width:112%;max-width:none}
.art-body h2,.art-body h3,.art-body hr,.art-body .art-call,.art-body table,.art-body figure.art-img-wide,.art-body .art-cycle,.art-body .rq{clear:both}
.art-body a.art-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:999px;background:#4430BC;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 10px 22px -12px rgba(68,48,188,.7);transition:transform .15s,box-shadow .15s}
.art-body a.art-btn:hover{transform:translateY(-1px);box-shadow:0 14px 26px -12px rgba(68,48,188,.8)}
.art-body a.art-btn.art-btn-sun{background:#FAE559;color:#160C4E;box-shadow:0 10px 22px -12px rgba(120,100,0,.6)}
.art-body .art-call.art-call-violet{border-inline-start-color:#4430BC;background:#F3F0FF}
.art-body .art-call>:last-child{margin-bottom:0}
@media (max-width:640px){.art-body figure.art-img-left,.art-body figure.art-img-right{float:none;width:100%;margin:24px 0}.art-body figure.art-img-wide{margin-inline:0;width:100%}}
body.glow main .art-body .art-c-violet{color:#C9BEFF}
body.glow main .art-body .art-c-sun{color:#160C4E!important;-webkit-text-fill-color:#160C4E}
body.glow main .art-body a.art-btn{color:#fff!important;-webkit-text-fill-color:#fff;text-decoration:none}
body.glow main .art-body a.art-btn.art-btn-sun{color:#160C4E!important;-webkit-text-fill-color:#160C4E}
body.glow main .art-body .art-call.art-call-violet{background:rgba(255,255,255,.08)}
body.glow main .art-body blockquote{color:#E4DFFB}
html[dir=rtl] .art-body figure.art-img-left{float:right}html[dir=rtl] .art-body figure.art-img-right{float:left}
