/* ============================================================
   AFRICAPICKUP — FORUM THREAD PAGE (PC) — Editorial Article
   File: pc-less-thread-cache.css
   Zero CLS — fixed aspect-ratio, no overlay, no shift
   ============================================================ */

/* ---------- 0. RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}
body{
  margin:0;padding:0 0 24px;background:#f5f5f5;color:#3d2a2a;
  font-family:Georgia,'Times New Roman',serif;
  font-size:17px;line-height:1.75;overflow-x:hidden;min-width:0;
  text-rendering:optimizeLegibility;
}
.sans{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit;cursor:pointer}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4{margin:0;padding:0;font:inherit;font-weight:700;line-height:1.3}
p{margin:0;padding:0}
.wrap{max-width:820px;margin:0 auto;padding:0 16px}

/* ---------- 1. BAN NOTICE ---------- */
.ap-banned{
  margin:20px 0 0;padding:16px 20px;border-radius:12px;
  background:#fff5f5;border-left:5px solid #c0392b;
  color:#5a2a2a;font-size:14px;line-height:1.55;
}
.ap-banned strong{color:#c0392b;display:block;margin-bottom:4px}
.ap-banned em{font-style:italic;color:#7a5a5a}

/* ---------- 2. BREADCRUMB ---------- */
.bc{
  margin:20px 0 0;padding:12px 18px;border-radius:12px;
  background:#eef4ef;border-left:5px solid #006400;
  font-size:13px;font-weight:700;color:#2a5a2a;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.bc a{
  color:#006400;display:inline-flex;align-items:center;gap:5px;
  padding:3px 6px;border-radius:5px;
  transition:all .15s ease;
}
.bc a:hover{background:rgba(0,163,42,.1);color:#00a32a}
.bc-sep{color:#00a32a;font-weight:900;font-size:14px}
.bc-current{
  color:#1a2e1a;font-weight:800;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px;
}

/* ---------- 3. ARTICLE HERO ---------- */
.article-hero{text-align:center;margin:32px 0 32px}
.article-cat{
  font-size:11.5px;font-weight:800;letter-spacing:1.6px;
  text-transform:uppercase;color:#00a32a;margin-bottom:14px;
}
.article-title{
  font-size:38px;font-weight:900;line-height:1.15;
  letter-spacing:-.6px;color:#1a2e1a;margin-bottom:20px;
  font-family:Georgia,'Times New Roman',serif;
  word-break:break-word;
}
.article-prefix{
  display:inline-block;font-size:12px;font-weight:800;
  color:#fff;background:linear-gradient(135deg,#00a32a,#006400);
  padding:4px 12px;border-radius:9px;margin-right:10px;
  text-transform:uppercase;letter-spacing:.5px;vertical-align:middle;
}
.article-byline{
  font-size:13.5px;color:#5a6a5a;
  display:flex;justify-content:center;gap:12px;flex-wrap:wrap;
  align-items:center;
}
.article-byline .avatar{
  width:42px;height:42px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  font-weight:900;font-size:16px;flex-shrink:0;
  box-shadow:0 4px 12px rgba(0,100,0,.22);
}
.article-byline .author{
  color:#006400;font-weight:800;transition:color .2s;
}
.article-byline .author:hover{color:#00a32a}
.article-byline .dot{color:#00a32a;font-weight:900}

/* ---------- 4. ARTICLE BODY ---------- */
.article-body{
  font-size:18px;line-height:1.8;color:#3d2a2a;
  margin-bottom:32px;
}
.article-thumb{
  margin:0 0 32px;border-radius:16px;overflow:hidden;
  box-shadow:0 8px 26px rgba(0,100,0,.12);
  aspect-ratio:16/9;background:#e4ede6;
}
.article-thumb img{
  width:100%;height:100%;object-fit:cover;
  aspect-ratio:16/9;
}
.article-content p{margin-bottom:20px}
.article-content p:last-child{margin-bottom:0}
.article-content p:first-child::first-letter{
  font-size:68px;font-weight:900;color:#006400;
  float:left;line-height:.9;padding:10px 14px 0 0;
  font-family:Georgia,serif;
}
.article-content img{
  border-radius:14px;margin:20px auto;
  box-shadow:0 6px 18px rgba(0,0,0,.1);
  aspect-ratio:auto;
}
.article-content h2,
.article-content h3{
  font-family:system-ui,-apple-system,sans-serif;
  color:#1a2e1a;margin:32px 0 16px;
  font-weight:800;line-height:1.25;
}
.article-content h2{font-size:24px}
.article-content h3{font-size:20px}
.article-content a{
  color:#006400;font-weight:700;
  text-decoration:underline;
  text-decoration-color:rgba(0,163,42,.4);
  text-underline-offset:4px;
  transition:color .2s,text-decoration-color .2s;
}
.article-content a:hover{
  color:#00a32a;
  text-decoration-color:#00a32a;
}
.article-content blockquote{
  border-left:5px solid #00a32a;background:#f6fbf7;
  padding:18px 24px;border-radius:0 12px 12px 0;
  margin:22px 0;color:#2a5a2a;font-style:italic;
  font-size:17px;
}
.article-content ul,
.article-content ol{
  padding-left:26px;margin:18px 0;list-style:disc;
}
.article-content ol{list-style:decimal}
.article-content li{margin-bottom:8px}
.article-content code{
  background:rgba(0,100,0,.08);padding:3px 7px;
  border-radius:5px;font-size:.9em;font-family:ui-monospace,monospace;
}
.article-content pre{
  background:#1a1a1a;color:#e4ede6;
  padding:20px;border-radius:12px;
  overflow-x:auto;margin:22px 0;font-size:14px;
  font-family:ui-monospace,monospace;
  line-height:1.6;
}

/* ---------- 5. ATTACHMENTS ---------- */
.article-attachments,
.comment-attachments{
  margin-top:24px;padding:16px;border-radius:12px;
  background:#f6fbf7;border:1px solid rgba(0,100,0,.08);
  display:flex;flex-direction:column;gap:8px;
}
.attach-item{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;border-radius:10px;background:#fff;
  border:1px solid rgba(0,100,0,.06);
  transition:all .2s ease;
}
.attach-item:hover{
  border-color:#00a32a;
  box-shadow:0 4px 12px rgba(0,100,0,.1);
  transform:translateY(-1px);
}
.attach-icon{font-size:20px;flex-shrink:0;font-style:normal}
.attach-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.attach-name{
  font-size:13.5px;font-weight:700;color:#006400;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.attach-meta{
  font-size:11.5px;color:#7a6a5a;font-weight:600;
}

/* ---------- 6. ARTICLE FOOTER (tags) ---------- */
.article-footer{
  display:flex;gap:10px;flex-wrap:wrap;
  padding:22px 0;
  border-top:1px solid rgba(0,100,0,.1);
  border-bottom:1px solid rgba(0,100,0,.1);
  margin-bottom:28px;
}
.tag{
  font-size:11.5px;font-weight:800;color:#006400;
  background:rgba(0,163,42,.08);padding:6px 14px;border-radius:9px;
  transition:all .2s;text-transform:uppercase;letter-spacing:.4px;
}
.tag:hover{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,100,0,.22);
}

/* ---------- 7. PREV / NEXT NAV ---------- */
.nav-pair{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  margin:32px 0 28px;
}
.nav-card{
  padding:16px 20px;background:#fff;border-radius:12px;
  border:1.5px solid rgba(0,100,0,.1);
  transition:all .2s;display:flex;flex-direction:column;gap:5px;
}
.nav-card:hover{
  border-color:#00a32a;transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,100,0,.14);
}
.nav-card .label{
  font-size:10.5px;font-weight:800;
  text-transform:uppercase;letter-spacing:.6px;color:#00a32a;
}
.nav-card .title{
  font-size:14px;font-weight:700;color:#1a2e1a;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  line-height:1.35;word-break:break-word;
}
.nav-card.next{text-align:right}

/* ---------- 8. COMMENTS SECTION ---------- */
.comments-section{margin-top:44px}
.comments-title{
  font-size:26px;font-weight:900;color:#1a2e1a;
  margin-bottom:24px;padding-bottom:16px;
  border-bottom:2px solid rgba(0,163,42,.2);
  display:flex;align-items:center;gap:14px;
}
.comments-title .count{
  padding:5px 14px;border-radius:12px;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  font-size:13px;font-weight:800;
}

.comment{
  background:#fff;border-radius:14px;padding:22px 24px;
  margin-bottom:14px;
  border:1px solid rgba(0,100,0,.06);
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  font-size:15px;line-height:1.7;position:relative;
  transition:box-shadow .2s,transform .2s,border-color .2s;
  contain:layout style;
}
.comment:hover{
  box-shadow:0 8px 22px rgba(0,100,0,.1);
  border-color:rgba(0,163,42,.18);
  transform:translateY(-2px);
}
.comment-head{
  display:flex;gap:14px;align-items:center;margin-bottom:14px;
}
.comment-avatar{
  width:46px;height:46px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  font-size:18px;font-weight:900;
  box-shadow:0 4px 10px rgba(0,100,0,.2);
}
.comment-author-info{flex:1;min-width:0}
.comment-author{font-size:14.5px;font-weight:800;color:#006400}
.comment-author a{color:inherit;transition:color .2s}
.comment-author a:hover{color:#00a32a}
.comment-meta{font-size:12px;color:#7a6a5a;margin-top:3px;font-weight:600}
.comment-index{
  padding:4px 11px;border-radius:8px;
  background:rgba(0,163,42,.1);color:#006400;
  font-size:11.5px;font-weight:800;flex-shrink:0;
}
.comment-body{color:#3d2a2a;word-break:break-word}
.comment-body p{margin-bottom:12px}
.comment-body p:last-child{margin-bottom:0}
.comment-body img{border-radius:10px;margin:14px 0}
.comment-body a{color:#006400;font-weight:700;text-decoration:underline}
.comment-body a:hover{color:#00a32a}
.comment-body blockquote{
  border-left:4px solid #00a32a;padding:12px 18px;
  background:#f6fbf7;border-radius:0 10px 10px 0;margin:14px 0;
  color:#2a5a2a;font-style:italic;
}
.comment-body code{
  background:rgba(0,100,0,.08);padding:3px 7px;border-radius:5px;
  font-size:.92em;
}
.comment-body pre{
  background:#1a1a1a;color:#e4ede6;padding:16px;
  border-radius:10px;overflow-x:auto;margin:14px 0;font-size:13px;
}

.comment-edited{
  margin-top:14px;padding:10px 14px;border-radius:8px;
  background:#f6fbf7;font-size:12px;color:#7a6a5a;
  font-weight:600;
}
.comment-edited strong{color:#006400}

.comment-actions{
  display:flex;gap:8px;flex-wrap:wrap;
  margin-top:14px;padding-top:14px;
  border-top:1px solid rgba(0,100,0,.06);
}
.comment-actions a{
  font-size:12px;font-weight:800;color:#006400;
  padding:7px 14px;border-radius:14px;
  display:inline-flex;align-items:center;gap:6px;
  transition:all .2s ease;
}
.comment-actions a:hover{
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,100,0,.22);
}

/* ---------- 9. PAGINATION ---------- */
.pages{
  margin:24px 0;padding:18px;border-radius:12px;
  background:linear-gradient(135deg,#e4ede6,#eef4ef);
  border-left:4px solid #006400;
  display:flex;flex-direction:column;gap:10px;
}
.page-listing{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.pg{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 13px;
  background:#fff;color:#006400;
  border:1px solid rgba(0,100,0,.15);border-radius:999px;
  font-size:13px;font-weight:700;transition:all .2s ease;
}
.pg:not(.disabled):not(.dots):not(.now):hover{
  background:linear-gradient(135deg,#00a32a,#006400);
  border-color:#006400;color:#fff;transform:translateY(-1px);
}
.pg.now{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;border-color:#006400;
  box-shadow:0 3px 8px rgba(0,100,0,.3);
}
.pg.disabled{opacity:.4}
.pg.dots{background:transparent;border:none;color:#7a6a5a;padding:0 3px}
.pages-info{
  display:block;text-align:center;color:#4a5a4a;
  font-size:12.5px;font-weight:600;
}

/* ---------- 10. REPLY FORM ---------- */
.reply-form{
  background:#fff;border-radius:14px;padding:26px 28px;
  border:1px solid rgba(0,100,0,.06);
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  margin-top:24px;
}
.reply-form h3{
  font-size:18px;font-weight:800;color:#2a5a2a;
  margin-bottom:16px;display:flex;align-items:center;gap:10px;
}
.reply-form h3::before{
  content:"";width:8px;height:8px;background:#00a32a;
  border-radius:50%;box-shadow:0 0 0 3px rgba(0,163,42,.14);
  flex-shrink:0;
}
.reply-as{
  font-size:13.5px;color:#5a6a5a;margin-bottom:14px;
  padding:10px 14px;background:#f6fbf7;border-radius:8px;
}
.reply-as a{color:#006400;font-weight:800}
.reply-input,
.reply-textarea{
  width:100%;padding:14px 16px;
  border:1.5px solid rgba(0,100,0,.12);border-radius:10px;
  font-family:inherit;font-size:15px;line-height:1.6;
  transition:border-color .2s,box-shadow .2s;margin-bottom:14px;
}
.reply-input:focus,
.reply-textarea:focus{
  outline:none;border-color:#00a32a;
  box-shadow:0 0 0 3px rgba(0,163,42,.1);
}
.reply-textarea{
  min-height:160px;resize:vertical;
}
.reply-attach{
  margin-bottom:16px;font-size:14px;color:#5a6a5a;
}
.reply-attach label{
  display:block;font-weight:700;color:#2a5a2a;
  margin-bottom:8px;font-size:13px;
}
.reply-attach input{font-size:14px}
.reply-submit{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;border:none;padding:13px 28px;border-radius:24px;
  font-size:13px;font-weight:800;text-transform:uppercase;
  letter-spacing:.4px;cursor:pointer;
  box-shadow:0 4px 12px rgba(0,100,0,.25);
  transition:all .2s;display:inline-flex;align-items:center;gap:8px;
}
.reply-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,100,0,.35);
}

/* ---------- 11. THREAD LOCKED ---------- */
.thread-locked{
  margin-top:24px;padding:24px;border-radius:14px;
  background:#f6fbf7;border-left:5px solid #00a32a;
  text-align:center;color:#2a5a2a;font-size:15px;font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:10px;
}
.thread-locked span{font-size:22px}

/* ---------- 12. EMPTY STATE ---------- */
.empty{
  padding:60px 24px;text-align:center;
  background:#fff;border-radius:16px;
  border:1px solid rgba(0,100,0,.08);
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  margin-top:24px;
}
.empty-ico{
  font-size:64px;display:block;margin-bottom:18px;
  font-style:normal;line-height:1;
}
.empty strong{
  display:block;font-size:20px;color:#1a2e1a;
  font-weight:800;margin-bottom:8px;
}
.empty p{color:#5a6a5a;font-size:14px;line-height:1.6;margin-bottom:0}

/* ---------- 13. AD SLOT ---------- */
.ad-slot{
  min-height:250px;display:flex;align-items:center;justify-content:center;
  margin:16px 0;background:#eef4ef;border-radius:10px;overflow:hidden;
}
.ad-slot:empty{min-height:0;margin:0}

/* ---------- 14. TABLET (600–940px) ---------- */
@media (min-width:600px) and (max-width:940px){
  .wrap{max-width:720px}
  .article-title{font-size:30px}
  .article-body{font-size:17px}
  .article-content p:first-child::first-letter{font-size:60px}
  .comments-title{font-size:22px}
  .comment{padding:18px 20px}
}

/* ---------- 15. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- 16. SCROLLBAR ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#f0f0f0;border-radius:5px}
::-webkit-scrollbar-thumb{background:#006400;border-radius:5px}
::-webkit-scrollbar-thumb:hover{background:#00a32a}
::-webkit-scrollbar-thumb:window-inactive{background:#999}

/* ---------- 17. SELECTION ---------- */
::selection{background:#75ff75}
::-moz-selection{background:#75ff75}