/* patch 6: make the News links fully visible (header icon + secondary nav).
   Footer Explore already lists News as a normal wrapping item; no footer change. */

/* Secondary nav: live CSS is
     .secnav-scroll{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:6px 0}
     .secnav-scroll::-webkit-scrollbar{display:none}
     .secnav a{white-space:nowrap;...}
   News is appended last, so a nowrap strip whose scrollbar is hidden clips it
   at every tested width (390–1440) in en/ar/ru/ja, with no hint that it scrolls.
   Let the pills wrap so every link stays on-screen. */
.secnav-scroll{
  flex-wrap:wrap;
  overflow:visible;
  row-gap:2px;
}

/* Header News control reuses .cartlink and is only the 📰 emoji (~19×24px at 15.2px).
   Make it a bordered pill at a readable size. title/aria-label already exist.
   The text label is shown from 761px up so it does not crush the logo in the
   mobile header row (max-width:760px is `.bar` logo + account). */
.acct a.cartlink[href="/news.php"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35em;
  font-size:1.2rem;
  line-height:1;
  min-width:36px;
  min-height:32px;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  white-space:nowrap;
  color:var(--ink);
  box-sizing:border-box;
}
.acct a.cartlink[href="/news.php"]:hover{
  color:var(--brand);
  background:#fbe9ec;
  border-color:#f1c5cc;
}
@media (min-width:761px){
  .acct a.cartlink[href="/news.php"]{padding:5px 10px 5px 8px}
  .acct a.cartlink[href="/news.php"]::after{
    content:"News";
    font-size:.82rem;
    font-weight:600;
    line-height:1.2;
  }
  html[lang="az"] .acct a.cartlink[href="/news.php"]::after{content:"Xəbərlər"}
  html[lang="ru"] .acct a.cartlink[href="/news.php"]::after{content:"Новости"}
  html[lang="ar"] .acct a.cartlink[href="/news.php"]::after{content:"الأخبار"}
  html[lang="he"] .acct a.cartlink[href="/news.php"]::after{content:"חדשות"}
  html[lang="fa"] .acct a.cartlink[href="/news.php"]::after{content:"اخبار"}
  html[lang="fr"] .acct a.cartlink[href="/news.php"]::after{content:"Actualités"}
  html[lang="de"] .acct a.cartlink[href="/news.php"]::after{content:"Nachrichten"}
  html[lang="it"] .acct a.cartlink[href="/news.php"]::after{content:"Notizie"}
  html[lang="es"] .acct a.cartlink[href="/news.php"]::after{content:"Noticias"}
  html[lang="ja"] .acct a.cartlink[href="/news.php"]::after{content:"ニュース"}
}

/* Keep the logo at its natural width on the mobile header row so a larger
   News pill cannot shrink it (global img{max-width:100%} was squeezing it).
   Account links wrap inside the remaining space. */
@media (max-width:760px){
  .top .bar{grid-template-columns:auto minmax(0,1fr)}
  .top .logo img{max-width:none}
  .top .acct{min-width:0}
}

/* langfix: the mobile header rule in style.css
     @media(max-width:760px){.acct a:not(.btn):not(.cartlink){display:none}}
   also matched the language links inside .langsw (it sits in nav.acct), so on
   phones the dropdown opened as an empty 14px strip with nothing to tap.
   Keep the language menu links visible at every width. */
.acct .langmenu a:not(.btn):not(.cartlink){display:block}
