/* AYAM24 article sidebar improvement v2.6.2 — blog posts only.
   Keeps the established sidebar ad widget id and respects Light/Dark mode. */
body.single-post .inner-layout > .a24-article-rail {
  align-self:start !important;
  align-content:start !important;
  grid-auto-rows:max-content !important;
  height:auto !important;
  min-height:0 !important;
  gap:22px;
}
body.single-post .a24-article-rail > * { min-height:0; height:auto; align-self:start; }
body.single-post .a24-rail-card {
  background:#fff;
  border:1px solid #e4e9f3;
  border-radius:17px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(28,40,76,.055);
  color:#192945;
}
body.single-post .a24-rail-titleline {padding:20px 20px 0;}
body.single-post .a24-rail-overline {display:block;color:#495cea;font-size:11px;font-weight:850;letter-spacing:.095em;line-height:1.35;}
body.single-post .a24-rail-featured-thumb {display:flex;align-items:center;justify-content:center;overflow:hidden;aspect-ratio:1.7;background:#eef1ff;margin:15px 18px 0;border-radius:12px;}
body.single-post .a24-rail-featured-thumb img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease;}
body.single-post .a24-rail-featured-thumb:hover img {transform:scale(1.035)}
body.single-post .a24-rail-thumb-fallback {font-size:66px;color:#6877ee;}
body.single-post .a24-rail-featured-body {padding:17px 19px 20px;}
body.single-post .a24-rail-featured-body h3 {margin:0 0 9px;line-height:1.35;font-size:19px;font-weight:850;overflow-wrap:anywhere;}
body.single-post .a24-rail-featured-body h3 a {color:#1b2a48;text-decoration:none;}
body.single-post .a24-rail-featured-body h3 a:hover {color:#4c5af1;}
body.single-post .a24-rail-featured-body p {color:#64738d;line-height:1.62;font-size:13px;margin:0 0 13px;}
body.single-post .a24-rail-read,body.single-post .a24-rail-all {display:inline-flex;align-items:center;gap:8px;color:#4a58e9;text-decoration:none;font-size:13px;font-weight:850;}
body.single-post .a24-rail-ad {width:100%;min-width:0;overflow:hidden;}
body.single-post .a24-rail-ad .ad-slot {min-height:245px;}
body.single-post .a24-rail-recent {padding-bottom:18px;}
body.single-post .a24-rail-recent .a24-rail-titleline {padding-bottom:8px;}
body.single-post .a24-rail-recent h2 {font-size:19px;font-weight:850;margin:0;line-height:1.35;color:#1b2a48;}
body.single-post .a24-rail-article-list {list-style:none;margin:0;padding:0 17px;}
body.single-post .a24-rail-article-list li {display:grid;grid-template-columns:70px minmax(0,1fr);align-items:start;gap:12px;padding:13px 0;border-bottom:1px solid #e8ecf3;}
body.single-post .a24-rail-article-list li:last-child {border-bottom:0;}
body.single-post .a24-rail-mini-thumb {width:70px;height:64px;background:#eef1fa;border-radius:9px;display:grid;place-items:center;overflow:hidden;color:#596dec;text-decoration:none;}
body.single-post .a24-rail-mini-thumb img {width:100%;height:100%;object-fit:cover;display:block;}
body.single-post .a24-rail-mini-copy a {display:block;font-size:13px;font-weight:800;line-height:1.42;color:#253550;text-decoration:none;overflow-wrap:anywhere;}
body.single-post .a24-rail-mini-copy a:hover {color:#4a58e9;}
body.single-post .a24-rail-mini-copy time {display:block;font-size:11px;color:#77849a;margin-top:6px;}
body.single-post .a24-rail-all {margin:10px 17px 0;}
/* Dark mode, scoped only to the new article rail. */
html[data-a24-theme="dark"] body.single-post .a24-rail-card {background:#1b263a;border-color:#3a4760;color:#eef3ff;box-shadow:0 8px 24px #0002;}
html[data-a24-theme="dark"] body.single-post .a24-rail-overline {color:#b8c5ff;}
html[data-a24-theme="dark"] body.single-post .a24-rail-featured-thumb,html[data-a24-theme="dark"] body.single-post .a24-rail-mini-thumb {background:#2b3955;}
html[data-a24-theme="dark"] body.single-post .a24-rail-featured-body h3 a,html[data-a24-theme="dark"] body.single-post .a24-rail-recent h2,html[data-a24-theme="dark"] body.single-post .a24-rail-mini-copy a {color:#f1f5ff;}
html[data-a24-theme="dark"] body.single-post .a24-rail-featured-body p,html[data-a24-theme="dark"] body.single-post .a24-rail-mini-copy time {color:#b8c6dc;}
html[data-a24-theme="dark"] body.single-post .a24-rail-article-list li {border-color:#38465e;}
html[data-a24-theme="dark"] body.single-post .a24-rail-read,html[data-a24-theme="dark"] body.single-post .a24-rail-all,html[data-a24-theme="dark"] body.single-post .a24-rail-featured-body h3 a:hover,html[data-a24-theme="dark"] body.single-post .a24-rail-mini-copy a:hover {color:#bdc7ff;}
@media(max-width:900px) {
 body.single-post .inner-layout > .a24-article-rail {display:grid;grid-template-columns:minmax(0,1fr);padding-top:25px;}
 body.single-post .a24-rail-featured-thumb {aspect-ratio:2.15;}
}
@media(min-width:901px) and (max-width:1100px){body.single-post .inner-layout {gap:25px;grid-template-columns:minmax(0,1fr) 280px;}}
@media(prefers-reduced-motion:reduce){body.single-post .a24-rail-featured-thumb img{transition:none}}
