.pub-box { position: fixed; z-index: 19; top: 10%; bottom: calc(5% + 1cm); left: 8%; right: 8%; background: #fff; border-radius: 18px;
  box-shadow: 0 4px 22px rgba(0,0,0,.12); box-sizing: border-box; padding: 26px 34px; overflow-y: auto; color: #2b2b2b; line-height: 2; font-size: 17px; }
@media (max-width: 900px) { .pub-box { left: 3%; right: 3%; padding: 18px 16px; font-size: 15.5px; } }
@media (max-width: 880px) { .pub-box { top: 92px; bottom: 60px; } }
.pub-active { outline: 2px solid #ffd45e; }
.pub-crumbs { font-size: 13px; color: #6b6b6b; margin-bottom: 8px; }
.pub-crumbs a { color: #1a5c66; text-decoration: underline; }
.pub-crumbs span { margin: 0 6px; color: #aaa; }
.pub-h1 { text-align: center; font-size: 26px; font-weight: bold; color: #1a5c66; margin: 0 0 6px; line-height: 1.6; }
.pub-h1::after { content: ''; display: block; width: 56px; height: 5px; border-radius: 4px; margin: 8px auto 0; background: linear-gradient(90deg, #ffd45e, #b08c2e); }
.pub-lead { text-align: center; color: #5a5a6a; font-size: 15.5px; margin: 12px auto 22px; max-width: 760px; }
.pub-h2 { font-size: 20px; color: #1a5c66; margin: 26px 0 10px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.pub-card { background: linear-gradient(180deg, #fff, #f6f1fd); border: 1.5px solid #e5dcf4; border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 4px 0 #d6c8ec;
  text-decoration: none; color: inherit; display: block; }
a.pub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #cdb9ea; }
.pub-card .pub-ic { font-size: 28px; line-height: 1; }
.pub-card h2, .pub-card h3 { margin: 6px 0 4px; font-size: 18px; color: #3b1f7a; }
.pub-card p { margin: 0; font-size: 14px; color: #666; line-height: 1.9; }
.pub-card .pub-sub { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pub-card .pub-sub a { background: #ede4fb; color: #4c1792; border-radius: 14px; padding: 1px 12px; font-size: 13px; text-decoration: none; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 18px; }
.pub-chip { padding: 6px 16px; border-radius: 20px; background: #f1ecf9; color: #4c1792; text-decoration: none; font-size: 14px; border: 1.5px solid transparent; }
.pub-chip.on { background: #5B1FA8; color: #fff; box-shadow: 0 3px 0 #331069; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { border-bottom: 1px dashed #e0d8ee; }
.pub-list a { display: block; padding: 12px 6px; text-decoration: none; color: inherit; }
.pub-list a:hover { background: #faf7ff; }
.pub-list b { display: block; color: #3b1f7a; font-size: 17px; }
.pub-list small { color: #777; font-size: 13.5px; }
.pub-tag { display: inline-block; background: #fff3c4; color: #7a5c10; border-radius: 10px; padding: 0 9px; font-size: 12px; margin-inline-start: 6px; }
.pub-pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.pub-pager a, .pub-pager span { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: 12px; background: #f1ecf9; color: #4c1792; text-decoration: none; font-size: 14px; }
.pub-pager .cur { background: #5B1FA8; color: #fff; box-shadow: 0 3px 0 #331069; }
.pub-article h3 { color: #1a5c66; margin: 20px 0 6px; font-size: 19px; }
.pub-article p { margin: 0 0 12px; }
.pub-article ul, .pub-article ol { margin: 0 0 14px; padding-inline-start: 26px; }
.pub-article ul { list-style: disc; } .pub-article ol { list-style: decimal; } .pub-article li { margin-bottom: 4px; list-style: inherit; }
.pub-article a { color: #5B1FA8; text-decoration: underline; }
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 22px; height: 46px; border-radius: 26px; color: #fff !important; font-weight: bold; text-decoration: none; font-size: 15px;
  background: linear-gradient(180deg, #8a4fe0 0%, #6a2cc0 48%, #5B1FA8 52%, #4c1792 100%); box-shadow: 0 5px 0 #331069, 0 10px 16px rgba(91,31,168,.3), inset 0 2px 0 rgba(255,255,255,.35); text-shadow: 0 2px 2px rgba(0,0,0,.3); }
.pub-btn.green { background: linear-gradient(180deg,#52c06a 0%,#2e9e4a 48%,#278a3f 52%,#1f7634 100%); box-shadow: 0 5px 0 #14502a, 0 10px 16px rgba(31,118,52,.3), inset 0 2px 0 rgba(255,255,255,.35); }
.pub-btn.gold { background: linear-gradient(180deg,#ffe38a,#ffd45e 50%,#f0be36); color: #5a4300 !important; text-shadow: none; box-shadow: 0 5px 0 #b08c2e, 0 10px 16px rgba(176,140,46,.3), inset 0 2px 0 rgba(255,255,255,.6); }
.pub-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #331069; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0; }
.pub-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.pub-info .pub-card .lbl { font-size: 13px; color: #888; }
.pub-info .pub-card .val { font-size: 18px; font-weight: bold; color: #2b2b2b; direction: ltr; text-align: right; word-break: break-word; }
.pub-info .pub-card .val.rtl { direction: rtl; font-size: 16px; line-height: 1.9; }
.pub-info .pub-card a.val { color: #4c1792; text-decoration: none; display: block; }
.pub-social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.pub-social a { padding: 8px 18px; border-radius: 22px; background: #ede4fb; color: #4c1792; text-decoration: none; font-weight: bold; font-size: 14px; box-shadow: 0 3px 0 #cdb9ea; }
.pub-empty { text-align: center; color: #999; margin: 30px 0; }
.pub-meta { color: #888; font-size: 12.5px; margin-top: 18px; }
.pub-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pub-mobile-only { display: none !important; }
@media (max-width: 768px), (hover: none) and (pointer: coarse) { .pub-mobile-only { display: inline-flex !important; } }
