/* PayscaleBD — মোবাইল ভিউ পলিশ (v1.0)
   শুধু ছোট স্ক্রিনে প্রযোজ্য; ডেস্কটপ লেআউট অপরিবর্তিত। */

@media (max-width: 720px) {
  :root {
    --r: 10px;
    --gut: 14px;
    --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 2px 8px rgba(20, 20, 20, .05);
  }

  html { scroll-padding-top: 64px; }
  body {
    font-size: 16px;
    line-height: 1.7;
    -webkit-tap-highlight-color: rgba(164, 22, 26, .12);
    overflow-x: hidden;
  }
  a, button { touch-action: manipulation; }
  input, select, textarea { font-size: 16px; } /* iOS জুম বন্ধ */

  .wrap {
    padding-left: max(var(--gut), env(safe-area-inset-left));
    padding-right: max(var(--gut), env(safe-area-inset-right));
  }

  /* ---------- টপবার ---------- */
  .topbar { font-size: 12.5px; }
  .topbar-in { flex-wrap: nowrap; min-height: 40px; padding-top: 0; padding-bottom: 0; gap: 8px; }
  .topbar-l { flex: 1 1 auto; flex-wrap: nowrap; overflow: hidden; gap: 0 10px; }
  .topbar .today { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 500; }
  .tb-clock { flex: none; padding-left: 10px; }
  .tb-time { min-width: 0; }
  .tb-online { display: none; }
  .topbar .pwa-btn { display: none; }
  .topbar-r { gap: 5px; }
  .soc {
    min-width: 30px; height: 30px; padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
  }
  .search-toggle {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px; padding: 0;
    border-radius: 50%; font-size: 14px; line-height: 1;
  }
  .search-toggle .st-t { display: none; }

  .search-box { padding: 10px 0; box-shadow: 0 6px 14px rgba(0, 0, 0, .08); }
  .searchform { gap: 8px; }
  .searchform input { height: 44px; border-radius: var(--r); border-color: var(--line); padding: 0 14px; }
  .searchform button { height: 44px; border-radius: var(--r); padding: 0 18px; background: var(--p); font-weight: 600; }

  /* ---------- মাস্টহেড ---------- */
  .masthead { padding-top: 12px; }
  .mast-in { padding-bottom: 8px; }
  .brand-t { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 21px; }
  .brand-n { font-size: clamp(27px, 8.4vw, 36px); letter-spacing: -.5px; line-height: 1.25; }
  .custom-logo { max-height: 52px; }
  .tagline {
    font-size: 12.5px; line-height: 1.55; font-weight: 500;
    padding: 7px 4px 9px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--muted);
  }

  /* ---------- নেভিগেশন ---------- */
  .main-nav { border-bottom-width: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
  .admin-bar .main-nav { top: 46px; }
  .nav-in { padding-top: 0; padding-bottom: 0; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 48px; padding: 0 2px;
    font-size: 16px; letter-spacing: .2px;
  }
  .nav-toggle::after {
    content: ""; width: 9px; height: 9px; margin-right: 4px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
  }
  .nav-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
  .main-nav.open .menu {
    max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
    overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: 8px;
  }
  .main-nav .menu>li { border-top-color: rgba(255, 255, 255, .1); }
  .main-nav .menu>li>a { padding: 0 2px; min-height: 48px; display: flex; align-items: center; font-size: 16px; }
  .main-nav .menu>li>a:hover,
  .main-nav .menu>li.current-menu-item>a,
  .main-nav .menu>li.current-cat>a { background: transparent; color: #ff9aa0; }
  .sub-toggle { width: 52px; min-height: 48px; background: transparent; border-left: 1px solid rgba(255, 255, 255, .1); }
  .main-nav .sub-menu { background: #1d1d1d; }
  .main-nav .sub-menu a { padding: 12px 18px; font-size: 15px; }

  /* ---------- টিকার ---------- */
  .ticker { border-bottom: 1px solid var(--line); }
  .ticker-in { min-height: 40px; gap: 8px; }
  .ticker-l { border-radius: 14px; padding: 3px 10px; font-size: 12.5px; }
  .tk { font-size: 14px; padding: 0 16px; }
  .ticker-track { animation-duration: 90s; }

  /* ---------- পেইজ ---------- */
  #page { padding: 14px 0 30px; }

  /* প্যানেল */
  .panel {
    border: 1px solid var(--line);
    border-top-width: 3px;
    border-radius: var(--r);
    box-shadow: var(--shadow);
  }
  .panel-h { padding: 11px 14px; }
  .panel-h h2 { font-size: 18px; }
  .panel-b { padding: 12px 14px; }
  .live, .tall .live { max-height: 420px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .live .li { padding: 12px 14px; gap: 4px; }
  .live a { font-size: 15.5px; line-height: 1.6; }
  .live time { font-size: 12px; }
  .live-refresh { width: 32px; height: 32px; border-radius: 50%; }
  .cats-scroll { max-height: 380px; }
  .catlist a { padding: 10px 0; }

  /* ফ্রন্ট পেইজ */
  .front { margin-bottom: 22px; padding-bottom: 20px; border-bottom-width: 1px; }
  .front-rail { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); gap: 18px; }

  .it-lead .it-img { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); aspect-ratio: 16/10; }
  .it-lead .it-b { padding-top: 12px; }
  .it-lead h2 { font-size: 24px; line-height: 1.42; margin-bottom: 6px; }
  .it-x { font-size: 15.5px; line-height: 1.75; }
  .lead-col { padding-bottom: 14px; }
  .stack-col { padding-top: 6px; }
  .mini-h { font-size: 17px; margin-top: 10px; }

  .it-img { border-radius: 8px; }
  .it-lead .it-img { border-radius: 0; }

  .it-mini { grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; }
  .it-mini h4 { font-size: 15.5px; line-height: 1.55; }

  .card-row { margin-top: 18px; padding-top: 16px; gap: 0; }
  .card-row .it-card { padding: 0 0 16px; margin-bottom: 16px; }
  .it-card h3 { font-size: 18.5px; line-height: 1.5; }

  .kicker, .tag { font-size: 12.5px; margin-bottom: 4px; }
  .meta { font-size: 12px; }

  /* ক্যাটাগরি বক্স */
  .cat-boxes { gap: 26px; margin-bottom: 24px; padding-bottom: 22px; border-bottom-width: 1px; }
  .cbox-h { padding: 8px 0 7px; margin-bottom: 10px; }
  .cbox-h h2 { font-size: 20px; }
  .cbox-h .more { font-size: 13px; padding: 4px 0 4px 10px; }
  .cbox-l li { padding: 11px 0 11px 18px; }
  .cbox-l li::before { top: 21px; }
  .cbox-l a { font-size: 15.5px; }

  /* তালিকা */
  .sec-h { border-top-width: 3px; }
  .sec-h h2 { font-size: 20px; border-left-width: 5px; }
  .it-list { grid-template-columns: 116px 1fr; gap: 12px; padding: 14px 0; }
  .it-list h3 { font-size: 16.5px; line-height: 1.52; margin: 0 0 4px; font-weight: 700; }
  .it-list .it-img { aspect-ratio: 4/3; }
  .grid4 { gap: 14px 12px; }
  .grid4 .it-card h3 { font-size: 15px; }

  .home-side { margin-top: 22px; gap: 18px; }

  /* ---------- আর্কাইভ ---------- */
  .arc-h { border-top-width: 3px; padding: 8px 0 6px; }
  .arc-h h1 { font-size: 22px; border-left-width: 5px; }
  .pager, .pagination { margin: 18px 0; }
  .page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 8px; border-color: var(--line); }

  /* ---------- সিঙ্গেল পোস্ট ---------- */
  .crumbs { white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; margin-bottom: 8px; }
  .crumbs::-webkit-scrollbar { display: none; }
  .entry-h h1 { font-size: 24px; line-height: 1.45; margin: 6px 0 10px; }
  .entry-meta { gap: 4px 14px; font-size: 12.5px; padding: 8px 0; margin-bottom: 14px; }
  .entry-img { margin: 0 calc(var(--gut) * -1) 16px; }
  .entry-img figcaption { padding-left: var(--gut); padding-right: var(--gut); }
  .entry-content { font-size: 17px; line-height: 1.9; }
  .entry-content h2 { font-size: 21px; border-left-width: 5px; margin-top: 1.5em; }
  .entry-content h3 { font-size: 18.5px; }
  .entry-content blockquote { margin-left: 0; margin-right: 0; padding: 10px 14px; border-radius: 0 8px 8px 0; }
  .table-wrap { border-radius: 8px; border-color: var(--line); -webkit-overflow-scrolling: touch; }
  .entry-content table { font-size: 15px; min-width: 480px; }
  .entry-content th, .entry-content td { padding: 8px 10px; }
  .entry-tags a { padding: 3px 12px; margin: 3px 4px 3px 0; border-radius: 16px; }

  .share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .share span { grid-column: 1 / -1; }
  .share a, .share button { min-height: 42px; display: grid; place-items: center; border-radius: 8px; padding: 0 8px; font-size: 13.5px; text-align: center; }

  .post-nav { gap: 10px; }
  .post-nav a { border-radius: 8px; padding: 12px 14px; }
  .pn-next { text-align: left; }

  /* মন্তব্য */
  .cm-list .children { margin-left: 14px; }
  .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { border-radius: 8px; border-color: var(--line); padding: 11px 12px; }
  .comment-form .submit { width: 100%; min-height: 46px; border-radius: 8px; background: var(--p); font-weight: 600; }

  /* ---------- ফুটার ---------- */
  .site-footer { border-top-width: 4px; }
  .footer-cols { gap: 24px; padding-top: 28px; padding-bottom: 20px; }
  .foot-brand { font-size: 26px; }
  .fw-t { font-size: 17px; margin-bottom: 8px; }
  .flist li { padding: 9px 0; }
  .foot-soc .soc { min-width: 36px; height: 36px; }
  .copy { padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
  .copy .disc { margin-top: 6px; }

  /* ---------- ভাসমান বাটন ---------- */
  .to-top {
    right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--p); box-shadow: 0 4px 14px rgba(164, 22, 26, .4);
  }
}

@media (max-width: 380px) {
  .tb-clock { display: none; }
  .brand-mark { display: none; }
  .it-list { grid-template-columns: 100px 1fr; }
  .it-mini { grid-template-columns: 84px 1fr; }
  .share { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
  .nav-toggle::after { transition: none; }
}
