/* Article page */
.ar-main{background:var(--paper); padding:22px 0 64px; min-height:70vh;}
.ar-wrap{width:min(720px,100% - 32px); margin-inline:auto;}
.ar-back{display:inline-flex; align-items:center; gap:4px; margin-bottom:14px; padding:6px 10px 6px 6px; border-radius:10px; color:var(--navy-soft); font:600 14px/1 'Inter',sans-serif; text-decoration:none;}
.ar-back:hover{background:var(--blue-tint); color:var(--navy);}
.ar-back svg{width:18px; height:18px;}
html[dir="rtl"] .ar-back svg{transform:scaleX(-1);}
.ar-cover{border-radius:18px; overflow:hidden; background:var(--blue-tint); margin-bottom:20px; aspect-ratio:16/9;}
.ar-cover img{display:block; width:100%; height:100%; object-fit:cover;}

.ar-head h1{font:800 clamp(26px,4.4vw,38px)/1.2 'Sora','Inter',sans-serif; letter-spacing:-.01em; color:var(--navy); overflow-wrap:anywhere;}
html[lang="ar"] .ar-head h1,html[lang="ja"] .ar-head h1,.ar-head[lang="ar"] h1,.ar-head[lang="ja"] h1{font-family:inherit; letter-spacing:0; line-height:1.4;}
.ar-lede{margin-top:10px; font:400 18px/1.55 'Inter',sans-serif; color:var(--navy-soft); overflow-wrap:anywhere;}
.ar-head[lang="ar"] .ar-lede{font-family:'Noto Sans Arabic','Inter',sans-serif; line-height:1.8;}

.ar-meta{display:flex; align-items:center; gap:12px; margin:20px 0 26px; padding-bottom:20px; border-bottom:1px solid var(--border-soft);}
.ar-av{width:44px; height:44px;}
.ar-by{display:flex; flex-direction:column; gap:3px; min-width:0;}
.ar-by b{font:700 15px/1.3 'Inter',sans-serif; color:var(--navy);}
.ar-by span{font-size:13px; color:var(--navy-soft);}

/* the text */
.ar-body{font:400 18px/1.8 'Inter',sans-serif; color:var(--prose-text); overflow-wrap:anywhere;}
.ar-body[lang="ar"]{font-family:'Noto Sans Arabic','Inter',sans-serif; line-height:2;}
.ar-body[lang="ja"]{font-family:'Noto Sans JP','Inter',sans-serif; line-height:1.95;}
.ar-body > * + *{margin-top:1.1em;}
.ar-body h2{font:800 clamp(22px,3.4vw,28px)/1.3 'Sora','Inter',sans-serif; color:var(--navy); margin-top:1.8em;}
.ar-body h3{font:700 21px/1.35 'Sora','Inter',sans-serif; color:var(--navy); margin-top:1.5em;}
.ar-body[lang="ar"] h2,.ar-body[lang="ar"] h3,.ar-body[lang="ja"] h2,.ar-body[lang="ja"] h3{font-family:inherit;}
.ar-body h4{font:700 15px/1.4 'JetBrains Mono',monospace; text-transform:uppercase; letter-spacing:.06em; color:var(--blue-dark); margin-top:1.6em;}
.ar-body h4.linethrough{display:flex; align-items:center; gap:14px; text-align:center;}
.ar-body h4.linethrough::before,.ar-body h4.linethrough::after{content:""; flex:1; height:1px; background:var(--border-soft);}
.ar-body b,.ar-body strong{font-weight:700; color:var(--navy);}
.ar-body a{color:var(--blue-dark); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px;}
.ar-body a:hover{color:var(--blue);}
.ar-body blockquote{margin-inline:0; padding:4px 18px; border-inline-start:4px solid var(--blue); background:var(--blue-tint); border-radius:0 12px 12px 0; color:var(--navy);}
html[dir="rtl"] .ar-body blockquote,.ar-body[dir="rtl"] blockquote{border-radius:12px 0 0 12px;}
.ar-body ul,.ar-body ol{padding-inline-start:1.6em;}
.ar-body li + li{margin-top:.4em;}
.ar-body hr{border:0; height:1px; background:var(--border-soft); margin-block:2em;}
.ar-body img{display:block; max-width:100%; height:auto; border-radius:14px; margin-inline:auto; background:var(--blue-tint);}
.ar-body img.subimg{max-width:min(100%,320px);}
.art-vid{position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#000;}
.art-vid iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}

/* actions */
.ar-actions{display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:34px; padding-top:18px; border-top:1px solid var(--border-soft);}
.ar-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:0; padding:12px 8px; border:0; border-radius:12px; background:color-mix(in srgb, var(--navy) 6%, transparent); color:var(--navy-soft); font:700 14px/1 'Inter',sans-serif; cursor:pointer; transition:background .15s,color .15s;}
.ar-btn:hover{background:var(--blue-tint); color:var(--navy);}
.ar-btn:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.ar-btn svg{width:19px; height:19px; flex:none;}
.ar-btn span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.ar-count{font-style:normal; font:600 12px/1 'JetBrains Mono',monospace; color:var(--blue-dark);}
.ar-count:empty{display:none;}
@media (max-width:400px){ .ar-btn{gap:5px; padding:12px 4px; font-size:12.5px;} .ar-btn svg{width:17px; height:17px;} }

.ar-missing{text-align:center; padding:70px 0; display:flex; flex-direction:column; align-items:center; gap:14px;}
.ar-missing h1{font:800 28px/1.2 'Sora','Inter',sans-serif; color:var(--navy);}
.ar-missing p{color:var(--navy-soft); max-width:46ch;}
.auth-foot{border-top:1px solid var(--border-soft); background:var(--white);}
.auth-foot-in{display:flex; justify-content:space-between; align-items:center; gap:12px; padding-block:18px; font-size:13.5px; flex-wrap:wrap;}
.auth-foot-links{display:inline-flex; gap:18px;}
.auth-foot a{color:var(--navy-soft); text-decoration:none;}
.auth-foot a:hover{color:var(--navy);}
