/* Upgrade 3 · news: #news page, the "latest news" strip on the market board, the admin card.
   Same glass / glow language as the market frame. Prefix: nw- */
[data-nw] { --nw-silver: #CBD3DE; --nw-gold: #E3C07E; --nw-card: rgba(7, 10, 15, .82); }
html[data-theme="light"] [data-nw] { --nw-silver: #5D6878; --nw-gold: #A9771F; --nw-card: rgba(255, 255, 255, .66); }

.nw-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir="rtl"] .nw-flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- header */
.nw-page { max-width: 1120px; margin: 0 auto; padding-top: 4px; }
.nw-head { text-align: center; margin: 10px auto 20px; max-width: 680px; }
.nw-title { font-size: clamp(30px, 5vw, 48px); margin: 12px 0 6px; }
.nw-sub { margin: 0 auto; color: var(--ink-2); font-size: 14.5px; max-width: 540px; }
.nw-live { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 5px 13px 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); font-size: 12.5px; color: var(--ink-2); min-height: 28px; }
.nw-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.nw-live[data-s="live"] { color: var(--mint); border-color: rgba(16, 188, 131, .42); background: rgba(16, 188, 131, .07); }
.nw-live[data-s="live"] i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nw-live[data-s="live"] i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); animation: nwPing 1.9s cubic-bezier(0, 0, .2, 1) infinite; }
.nw-live[data-s="stale"] { color: #F6CF8C; border-color: rgba(240, 182, 90, .42); background: rgba(240, 182, 90, .07); }
.nw-live[data-s="stale"] i { background: var(--warn); }
.nw-live[data-s="off"] i { background: #8A8A8A; }
.nw-live-sm { margin: 0; padding: 0; border: 0; background: none; min-height: 0; }
@keyframes nwPing { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.nw-live.nw-live-sm[data-s] i::after { inset: -3px; }

/* ---------------------------------------------------------------- filters */
.nw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
/* the row scrolls (so it clips): the padding gives the selected chip's glow room on every side (the first
   chip sits at the row's edge), the margin gives the space back */
.nw-chips { display: flex; gap: 8px; padding: 14px; margin: -14px; overflow-x: auto; scrollbar-width: none; }
.nw-chips::-webkit-scrollbar, .nw-cos::-webkit-scrollbar { display: none; }
.nw-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap;
  background: var(--glass); background-image: var(--glass-grad); color: var(--ink-2); font-size: 14px; box-shadow: var(--shadow-in);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s, transform .15s; }
.nw-chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .26); }
.nw-chip:active { transform: scale(.97); }
.nw-chip .nw-svg { width: 16px; height: 16px; opacity: .9; }
.nw-chip[data-k="gold"] .nw-svg { color: var(--nw-gold); }
.nw-chip[data-k="silver"] .nw-svg { color: var(--nw-silver); }
.nw-chip[data-k="stocks"] .nw-svg { color: var(--accent); }
.nw-chip[aria-selected="true"] { color: var(--ink); border-color: rgba(16, 188, 131, .6);
  background: linear-gradient(180deg, rgba(16, 188, 131, .24), rgba(16, 188, 131, .06)); box-shadow: var(--shadow-in), 0 0 24px -6px rgba(16, 188, 131, .65); }
.nw-chip[data-k="gold"][aria-selected="true"] { border-color: rgba(227, 192, 126, .62); background: linear-gradient(180deg, rgba(227, 192, 126, .24), rgba(227, 192, 126, .05)); box-shadow: var(--shadow-in), 0 0 24px -6px rgba(227, 192, 126, .6); }
.nw-chip[data-k="silver"][aria-selected="true"] { border-color: rgba(203, 211, 222, .58); background: linear-gradient(180deg, rgba(203, 211, 222, .2), rgba(203, 211, 222, .04)); box-shadow: var(--shadow-in), 0 0 24px -6px rgba(203, 211, 222, .45); }
.nw-langs button[lang="en"] { font-family: var(--font); }
.nw-cos { display: flex; gap: 7px; padding: 3px; margin: -6px -3px 14px; overflow-x: auto; scrollbar-width: none; }
.nw-cochip { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; cursor: pointer; transition: all .2s; }
.nw-cochip:hover { color: var(--ink); border-style: solid; }
.nw-cochip[aria-pressed="true"] { border-style: solid; border-color: rgba(16, 188, 131, .55); color: var(--mint); background: rgba(16, 188, 131, .1); }

/* "new stories" pill, sticky under the top bar */
.nw-fresh-wrap { position: sticky; top: 80px; z-index: 6; display: flex; justify-content: center; height: 0; }
.nw-fresh { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  background: linear-gradient(180deg, #F4FFFA, #CFF2E6); color: #05070D; box-shadow: 0 0 0 1px rgba(207, 242, 230, .45), 0 12px 30px -8px rgba(16, 188, 131, .75);
  transform: translateY(-6px); animation: nwDrop .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.nw-fresh .nw-svg { width: 16px; height: 16px; }
@keyframes nwDrop { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- publisher line, tags */
.nw-src { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.nw-pub { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 62%; }
.nw-sep { opacity: .6; }
.nw-time { white-space: nowrap; }
.nw-ic { --s: 22px; position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 7px;
  background: linear-gradient(135deg, hsl(var(--hue, 160) 42% 40%), hsl(calc(var(--hue, 160) + 40) 48% 24%)); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nw-ic::before { content: attr(data-l); }
.nw-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2px; background: #fff; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255, 255, 255, .03); }
.nw-tag.gold { color: #F3D9A0; border-color: rgba(227, 192, 126, .45); background: rgba(227, 192, 126, .1); }
.nw-tag.silver { color: #DDE3EB; border-color: rgba(203, 211, 222, .4); background: rgba(203, 211, 222, .08); }
.nw-tag.co { color: var(--mint); border-color: rgba(16, 188, 131, .4); background: rgba(16, 188, 131, .08); }
.nw-tag.lang { font-family: var(--font); font-weight: 600; letter-spacing: .05em; font-size: 10.5px; height: 20px; padding: 0 7px; color: var(--ink-2); }
.nw-tag.warn { color: #F6CF8C; border-color: rgba(240, 182, 90, .45); background: rgba(240, 182, 90, .08); }
.nw-tag.bad { color: #F7A3A6; border-color: rgba(242, 103, 107, .45); background: rgba(242, 103, 107, .08); }

/* headlines keep the page's side; dir="auto" orders mixed text correctly */
.nw-h, .nw-feat-h, .nw-strip-t { overflow-wrap: anywhere; }
html[dir="rtl"] .nw-h, html[dir="rtl"] .nw-feat-h, html[dir="rtl"] .nw-strip-t, html[dir="rtl"] .nw-arow-main a { text-align: right; }
html[dir="ltr"] .nw-h, html[dir="ltr"] .nw-feat-h, html[dir="ltr"] .nw-strip-t, html[dir="ltr"] .nw-arow-main a { text-align: left; }
.nw-h:lang(en), .nw-feat-h:lang(en), .nw-strip-t:lang(en) { font-family: var(--font); }
.nw-h:lang(ar), .nw-feat-h:lang(ar), .nw-strip-t:lang(ar) { font-family: var(--font-ar); }

/* ---------------------------------------------------------------- top story */
.nw-feat { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); margin: 0 0 16px; padding: 0; border-radius: 24px; color: var(--ink); text-decoration: none;
  background: var(--nw-card); background-image: linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-in), 0 40px 110px -44px rgba(0, 0, 0, .95);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.nw-feat:hover { border-color: rgba(207, 242, 230, .28); }
.nw-feat > .gt-line { left: 22%; right: 22%; }
.nw-feat > .gt-glow { left: 32%; right: 32%; opacity: .6; }
html[data-theme="light"] .nw-feat > .gt-glow, html[data-theme="light"] .nw-strip > .gt-glow, html[data-theme="light"] .nw-state > .gt-glow { opacity: .35; }
.nw-feat:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 24px; }
.nw-feat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px 200px at var(--mx, 50%) 0%, rgba(207, 242, 230, .08), transparent 70%); }
.nw-feat:hover::after { opacity: 1; }
.nw-feat-media { position: relative; min-height: 320px; overflow: hidden; border-start-start-radius: 23px; border-end-start-radius: 23px; background: #0B0E14; isolation: isolate; }
.nw-feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.nw-feat:hover .nw-feat-img { transform: scale(1.045); }
.nw-feat-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(5, 7, 13, .5), transparent 45%); }
.nw-feat-badge { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; color: #F8DDA4; background: rgba(20, 14, 4, .62); border: 1px solid rgba(242, 196, 109, .45); backdrop-filter: blur(8px); }
.nw-feat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F2C46D; box-shadow: 0 0 10px #F2C46D; }
.nw-feat-body { display: flex; flex-direction: column; gap: 14px; padding: 28px 30px 26px; min-width: 0; }
.nw-feat-h { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.nw-feat-h:lang(en) { line-height: 1.3; letter-spacing: -.01em; }
.nw-open { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 13.5px; }
.nw-open .nw-svg { width: 16px; height: 16px; }

/* no picture: a gradient scene with the publisher's mark on a 3D coin */
.nw-art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(110% 85% at 28% 18%, rgba(227, 192, 126, .42), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(16, 188, 131, .22), transparent 62%), linear-gradient(140deg, #1C150A, #080A0F 72%); }
[data-topic="silver"] > .nw-art { background: radial-gradient(110% 85% at 28% 18%, rgba(203, 211, 222, .36), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(16, 188, 131, .18), transparent 62%), linear-gradient(140deg, #141820, #080A0F 72%); }
[data-topic="stocks"] > .nw-art { background: radial-gradient(110% 85% at 28% 18%, rgba(16, 188, 131, .38), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(227, 192, 126, .18), transparent 62%), linear-gradient(140deg, #08170F, #080A0F 72%); }
.nw-art-grid { position: absolute; inset: -30% -20%; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 36px 36px; transform: perspective(520px) rotateX(62deg) translateY(30%); mask-image: radial-gradient(55% 55% at 50% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(55% 55% at 50% 45%, #000, transparent 75%); }
.nw-art-ring { position: absolute; width: 240px; height: 240px; border-radius: 50%; animation: nwSpin 14s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(242, 196, 109, .85) 70%, transparent 82%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
[data-topic="silver"] .nw-art-ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(225, 232, 240, .85) 70%, transparent 82%); }
[data-topic="stocks"] .nw-art-ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(16, 188, 131, .9) 70%, transparent 82%); }
.nw-coin { position: relative; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; font-weight: 600; color: rgba(70, 46, 8, .7);
  background: radial-gradient(circle at 34% 28%, #FFF7DE, #E8C886 36%, #A47A33 74%, #5B3F12);
  box-shadow: inset 0 -7px 16px rgba(0, 0, 0, .35), inset 0 5px 12px rgba(255, 255, 255, .55), 0 22px 44px -12px rgba(0, 0, 0, .75), 0 0 60px rgba(227, 192, 126, .35);
  transform: rotateX(16deg) rotateY(-20deg); animation: nwFloat 6s ease-in-out infinite; }
[data-topic="silver"] .nw-coin { color: rgba(40, 46, 56, .65); background: radial-gradient(circle at 34% 28%, #FFFFFF, #D3DAE3 38%, #87919E 76%, #424954); box-shadow: inset 0 -7px 16px rgba(0, 0, 0, .3), inset 0 5px 12px rgba(255, 255, 255, .7), 0 22px 44px -12px rgba(0, 0, 0, .75), 0 0 60px rgba(203, 211, 222, .3); }
[data-topic="stocks"] .nw-coin { color: rgba(4, 50, 34, .7); background: radial-gradient(circle at 34% 28%, #F2FFF9, #9FE6CB 38%, #1E9C70 76%, #0B4A35); box-shadow: inset 0 -7px 16px rgba(0, 0, 0, .3), inset 0 5px 12px rgba(255, 255, 255, .6), 0 22px 44px -12px rgba(0, 0, 0, .75), 0 0 60px rgba(16, 188, 131, .35); }
.nw-coin::before { content: attr(data-l); }
.nw-coin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.nw-coin img { position: absolute; z-index: 1; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); padding: 6px; border-radius: 14px; object-fit: contain; background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
@keyframes nwSpin { to { transform: rotate(360deg); } }
@keyframes nwFloat { 0%, 100% { transform: rotateX(16deg) rotateY(-20deg) translateY(0); } 50% { transform: rotateX(8deg) rotateY(-8deg) translateY(-8px); } }

/* ---------------------------------------------------------------- list */
.nw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nw-li { min-width: 0; }
.nw-item { position: relative; display: flex; gap: 14px; height: 100%; padding: 16px 16px 15px; border-radius: 18px; color: var(--ink); text-decoration: none;
  background: var(--glass); background-image: var(--glass-grad); border: 1px solid var(--line-2); box-shadow: var(--shadow-in);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.nw-item:hover { transform: translateY(-2px); border-color: rgba(207, 242, 230, .3); }
.nw-item:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 18px; }
.nw-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.nw-h { font-size: 15.5px; line-height: 1.65; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-h:lang(en) { line-height: 1.42; font-size: 15px; }
.nw-item .nw-tags { margin-top: auto; }
.nw-thumb { flex: none; width: 92px; height: 92px; align-self: flex-start; border-radius: 13px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-body.nw-dim { opacity: .55; transition: opacity .2s; }

/* skeleton */
.nw-skel { pointer-events: none; }
.nw-sk { display: block; height: 12px; margin: 2px 0; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: nwShimmer 1.4s linear infinite; }
.nw-feat.nw-skel .nw-sk:nth-child(2) { height: 22px; } .nw-feat.nw-skel .nw-sk:nth-child(3) { height: 22px; }
.nw-feat.nw-skel .nw-feat-media { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: nwShimmer 1.4s linear infinite; }
.nw-item.nw-skel { min-height: 128px; }
.nw-item.nw-skel .nw-sk:nth-child(2) { height: 16px; }
@keyframes nwShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* empty / error */
.nw-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 20px 34px; border-radius: 22px; }
.nw-state-art { position: relative; width: 74px; height: 58px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 14px; }
.nw-state-art span { height: 6px; border-radius: 3px; background: var(--line-2); }
.nw-state-art span:nth-child(1) { width: 70%; background: rgba(227, 192, 126, .55); }
.nw-state-art span:nth-child(3) { width: 55%; }
.nw-state[data-kind="net"] .nw-state-art span:nth-child(1) { background: rgba(242, 103, 107, .55); }
.nw-state-t { margin: 0; font-size: 16px; color: var(--ink); }
.nw-state-h { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-3); }
.nw-state .btn .nw-svg { width: 15px; height: 15px; }

.nw-more-wrap { display: flex; justify-content: center; margin: 20px 0 6px; min-height: 8px; }
.nw-more { min-width: 180px; }
.nw-end { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.nw-foot { display: flex; gap: 10px; align-items: flex-start; max-width: 780px; margin: 22px auto 6px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.nw-foot p { margin: 0; }
.nw-foot-src { margin-top: 4px !important; opacity: .85; }
.nw-foot-ic { width: 17px; height: 17px; margin-top: 2px; color: var(--ink-3); }

/* the news tab tells you when stories arrived while you were elsewhere */
[data-nav="news"].nw-has-new { position: relative; }
[data-nav="news"].nw-has-new::after { content: ""; position: absolute; top: 5px; inset-inline-end: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tabbar [data-nav="news"].nw-has-new::after { top: 4px; inset-inline-end: calc(50% - 18px); }

/* ---------------------------------------------------------------- market strip */
.nw-strip { position: relative; z-index: 2; max-width: 1180px; margin: 18px auto 0; padding: 14px 16px 6px; border-radius: 20px;
  background: var(--nw-card); background-image: linear-gradient(rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-in), 0 30px 90px -40px rgba(0, 0, 0, .9); backdrop-filter: blur(6px); }
.nw-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.nw-strip-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.nw-strip-all { display: inline-flex; align-items: center; gap: 2px; color: var(--mint); font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.nw-strip-all .nw-svg { width: 16px; height: 16px; }
.nw-strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-strip-list li { min-width: 0; }
.nw-strip-list li + li { border-inline-start: 1px solid var(--line); }
.nw-strip-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 10px; padding: 12px 12px 10px; margin: 4px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .2s; }
.nw-strip-list a:hover { background: rgba(255, 255, 255, .04); }
.nw-strip-list .nw-ic { margin-top: 2px; }
.nw-strip-t { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-strip-t:lang(en) { line-height: 1.4; }
.nw-strip-meta { grid-column: 2; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-strip-meta b { font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- admin card */
/* #admin: the users card, this card, then the shops editor; the gap goes below the card */
#adminNewsRoot:not(:empty) { margin: 0 0 18px; }
.nw-ahead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nw-ahead .fine { margin-top: 4px; max-width: 560px; }
.nw-ahead .nw-live { padding: 4px 10px; border: 1px solid var(--line-2); }
.nw-atabs { margin: 14px 0 12px; }
.nw-aoff { margin: 0 0 10px; color: #F6CF8C; }
.nw-amsg { min-height: 1.2em; }
.nw-srcs, .nw-arows, .nw-blocks, .nw-sugg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nw-srow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 13px; }
.nw-srow[data-st="fail"] { border-color: rgba(242, 103, 107, .35); }
.nw-srow-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nw-srow-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-srow-sub { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; }
.nw-srow-cell { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); min-width: 0; }
.nw-k { font-size: 11px; color: var(--ink-3); }
.nw-pill[data-st="ok"] { color: var(--mint); border-color: rgba(16, 188, 131, .45); background: rgba(16, 188, 131, .08); }
.nw-pill[data-st="ok"] i { background: var(--accent); }
.nw-pill[data-st="same"] i { background: var(--accent); opacity: .6; }
.nw-pill[data-st="fail"] { color: #F7A3A6; border-color: rgba(242, 103, 107, .45); background: rgba(242, 103, 107, .08); }
.nw-pill[data-st="fail"] i { background: var(--down); }
.nw-asearch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.nw-asearch .fine { margin: 0; }
.nw-asearch input, .nw-bform input, .nw-bform select { height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--ink); padding: 0 12px; font-size: 13.5px; min-width: 0; }
.nw-asearch input { flex: 1 1 260px; border-radius: 999px; padding: 0 16px; }
.nw-asearch input:focus, .nw-bform input:focus, .nw-bform select:focus { outline: none; border-color: rgba(16, 188, 131, .6); box-shadow: 0 0 0 3px rgba(16, 188, 131, .15); }
.nw-arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.nw-arow.off { opacity: .62; }
.nw-arow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nw-arow-main a { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-arow-main a:hover { text-decoration: underline; }
.nw-arow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--ink-3); }
.nw-arow-meta b { font-weight: 500; color: var(--ink-2); }
.nw-bform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-bottom: 12px; }
.nw-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-3); }
.nw-f.grow { flex: 1 1 180px; }
.nw-blocks li, .nw-sugg li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.nw-blocks li .btn, .nw-sugg li .btn, .nw-sugg li .nw-tag { margin-inline-start: auto; }
.nw-bnote { color: var(--ink-3); font-size: 12px; }
.nw-none { color: var(--ink-3); font-size: 13px; border-style: dashed !important; }
.nw-ah3 { margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.nw-sugg-d { font-family: var(--font); font-weight: 500; direction: ltr; }
.nw-sugg-r { color: var(--ink-3); font-size: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nw-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nw-feat { grid-template-columns: minmax(0, 1fr); transform: none; }
  .nw-feat-media { min-height: 0; aspect-ratio: 16 / 9; border-radius: 23px 23px 0 0; }
  .nw-feat-body { padding: 18px 18px 18px; gap: 11px; }
  .nw-fresh-wrap { top: 76px; }
  .nw-strip-list { grid-template-columns: minmax(0, 1fr); }
  .nw-strip-list li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .nw-strip-list a { margin: 2px 0; padding: 11px 6px 9px; }
  .nw-srow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .nw-srow-name { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nw-head { margin: 4px auto 16px; }
  .nw-sub { font-size: 13.5px; }
  .nw-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; } /* one line: the chips row scrolls instead of widening the page */
  .nw-chips { margin: -14px calc(-1 * var(--gutter)); padding: 14px var(--gutter); scroll-padding-inline: var(--gutter); }
  .nw-chips { gap: 6px; }
  .nw-chip { flex: 1 0 auto; justify-content: center; height: 40px; padding: 0 11px; gap: 5px; font-size: 13.5px; }
  .nw-chip .nw-svg { width: 15px; height: 15px; }
  .nw-langs { display: flex; width: 100%; }
  .nw-langs button { flex: 1; }
  .nw-cos { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .nw-item { padding: 14px 14px 13px; gap: 12px; }
  .nw-h { font-size: 15px; }
  .nw-thumb { width: 76px; height: 76px; border-radius: 11px; }
  .nw-feat-h { font-size: 19px; -webkit-line-clamp: 4; }
  .nw-coin { width: 96px; height: 96px; font-size: 40px; }
  .nw-coin img { inset: 25px; width: calc(100% - 50px); height: calc(100% - 50px); }
  .nw-art-ring { width: 196px; height: 196px; }
  .nw-foot { margin-inline: 0; }
}
/* phones and touch screens: the language seg (كل اللغات / عربي / English) is a 40 px target; scoped to
   news so the global .seg.sm keeps its size */
@media (max-width: 600px), (pointer: coarse) {
  .seg.nw-langs button { height: 40px; min-width: 44px; flex-shrink: 0; }
  .nw-cochip { height: 40px; }
  /* the admin card (#admin): tabs, buttons, fields, and each headline's link (a 40 px box over its one
     line that does not move the row: the row's 10 px padding above, the gap and the meta line below;
     position: relative puts it over the meta line, which would otherwise take that bottom edge) */
  .seg.nw-atabs button { height: 40px; min-width: 44px; }
  #adminNewsRoot .btn.sm, .nw-asearch input, .nw-bform input, .nw-bform select { height: 40px; }
  .nw-arow-main a { position: relative; padding-block: 10px; margin-block: -10px; }
}

/* ---------------------------------------------------------------- light theme */
html[data-theme="light"] .nw-live { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .nw-live[data-s="live"] { color: #0B7552; border-color: rgba(16, 168, 117, .45); background: rgba(16, 188, 131, .1); }
html[data-theme="light"] .nw-live[data-s="stale"] { color: #8A5A12; border-color: rgba(183, 121, 31, .4); background: rgba(240, 182, 90, .12); }
html[data-theme="light"] .nw-live-sm, html[data-theme="light"] .nw-strip-head .nw-live { background: none; }
html[data-theme="light"] .nw-chip { color: rgba(16, 32, 26, .7); }
html[data-theme="light"] .nw-chip:hover { border-color: rgba(16, 48, 36, .28); color: var(--ink); }
html[data-theme="light"] .nw-chip[aria-selected="true"] { color: #0B4F38; border-color: rgba(16, 168, 117, .55); background: linear-gradient(180deg, rgba(16, 188, 131, .18), rgba(16, 188, 131, .06)); box-shadow: var(--shadow-in), 0 8px 20px -10px rgba(16, 168, 117, .6); }
html[data-theme="light"] .nw-chip[data-k="gold"][aria-selected="true"] { color: #5E400B; border-color: rgba(169, 119, 31, .5); background: linear-gradient(180deg, rgba(227, 192, 126, .32), rgba(227, 192, 126, .1)); box-shadow: var(--shadow-in), 0 8px 20px -10px rgba(169, 119, 31, .55); }
html[data-theme="light"] .nw-chip[data-k="silver"][aria-selected="true"] { color: #2F3742; border-color: rgba(93, 104, 120, .45); background: linear-gradient(180deg, rgba(160, 172, 188, .3), rgba(160, 172, 188, .08)); box-shadow: var(--shadow-in), 0 8px 20px -10px rgba(93, 104, 120, .5); }
html[data-theme="light"] .nw-cochip[aria-pressed="true"] { color: #0B7552; background: rgba(16, 188, 131, .12); }
html[data-theme="light"] .nw-fresh { background: linear-gradient(180deg, #16C98E, #0DA472); color: #fff; box-shadow: 0 0 0 1px rgba(13, 164, 114, .35), 0 12px 26px -8px rgba(16, 188, 131, .7); }
html[data-theme="light"] .nw-feat, html[data-theme="light"] .nw-strip { background-image: linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .4)); border-color: rgba(16, 48, 36, .11);
  box-shadow: var(--shadow-in), 0 36px 90px -44px rgba(16, 48, 36, .4); }
html[data-theme="light"] .nw-feat:hover { border-color: rgba(16, 168, 117, .35); }
html[data-theme="light"] .nw-feat::after { background: radial-gradient(420px 200px at var(--mx, 50%) 0%, rgba(16, 188, 131, .08), transparent 70%); }
html[data-theme="light"] .nw-feat-media { background: #E7EEE9; }
html[data-theme="light"] .nw-feat-media::after { background: linear-gradient(to top, rgba(16, 32, 26, .22), transparent 45%); }
html[data-theme="light"] .nw-feat-badge { color: #6A470C; background: rgba(255, 249, 235, .85); border-color: rgba(169, 119, 31, .4); }
html[data-theme="light"] .nw-art { background: radial-gradient(110% 85% at 28% 18%, rgba(227, 192, 126, .55), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(16, 188, 131, .2), transparent 62%), linear-gradient(140deg, #FBF4E4, #E9F0EB 72%); }
html[data-theme="light"] [data-topic="silver"] > .nw-art { background: radial-gradient(110% 85% at 28% 18%, rgba(160, 172, 188, .5), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(16, 188, 131, .16), transparent 62%), linear-gradient(140deg, #F2F5F8, #E7EEE9 72%); }
html[data-theme="light"] [data-topic="stocks"] > .nw-art { background: radial-gradient(110% 85% at 28% 18%, rgba(16, 188, 131, .32), transparent 60%), radial-gradient(80% 70% at 85% 95%, rgba(227, 192, 126, .24), transparent 62%), linear-gradient(140deg, #EAF7F0, #E7EEE9 72%); }
html[data-theme="light"] .nw-art-grid { background-image: linear-gradient(rgba(16, 48, 36, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 48, 36, .09) 1px, transparent 1px); }
html[data-theme="light"] .nw-art-ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(169, 119, 31, .8) 70%, transparent 82%); }
html[data-theme="light"] [data-topic="silver"] .nw-art-ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(93, 104, 120, .7) 70%, transparent 82%); }
html[data-theme="light"] [data-topic="stocks"] .nw-art-ring { background: conic-gradient(from 0deg, transparent 0 55%, rgba(13, 164, 114, .8) 70%, transparent 82%); }
html[data-theme="light"] .nw-coin { box-shadow: inset 0 -7px 16px rgba(0, 0, 0, .22), inset 0 5px 12px rgba(255, 255, 255, .7), 0 20px 36px -14px rgba(60, 40, 8, .45), 0 0 50px rgba(227, 192, 126, .45); }
html[data-theme="light"] .nw-ic { box-shadow: inset 0 0 0 1px rgba(16, 48, 36, .12); }
html[data-theme="light"] .nw-ic img { box-shadow: inset 0 0 0 1px rgba(16, 48, 36, .1); }
html[data-theme="light"] .nw-tag { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .nw-tag.gold { color: #7A5310; border-color: rgba(169, 119, 31, .4); background: rgba(240, 190, 100, .16); }
html[data-theme="light"] .nw-tag.silver { color: #3E4754; border-color: rgba(93, 104, 120, .35); background: rgba(160, 172, 188, .16); }
html[data-theme="light"] .nw-tag.co { color: #0B7552; border-color: rgba(16, 168, 117, .35); background: rgba(16, 188, 131, .08); }
html[data-theme="light"] .nw-tag.warn { color: #8A5A12; }
html[data-theme="light"] .nw-tag.bad { color: #B23338; }
html[data-theme="light"] .nw-item:hover { border-color: rgba(16, 168, 117, .35); }
html[data-theme="light"] .nw-thumb { background: rgba(16, 48, 36, .05); box-shadow: inset 0 0 0 1px rgba(16, 48, 36, .08); }
html[data-theme="light"] .nw-sk { background: linear-gradient(90deg, rgba(16, 48, 36, .05), rgba(16, 48, 36, .11), rgba(16, 48, 36, .05)); background-size: 200% 100%; }
html[data-theme="light"] .nw-feat.nw-skel .nw-feat-media { background: linear-gradient(90deg, rgba(16, 48, 36, .04), rgba(16, 48, 36, .09), rgba(16, 48, 36, .04)); background-size: 200% 100%; }
html[data-theme="light"] .nw-state-art { background: rgba(255, 255, 255, .6); }
html[data-theme="light"] .nw-strip-list a:hover { background: rgba(16, 168, 117, .06); }
html[data-theme="light"] .nw-srow, html[data-theme="light"] .nw-arow, html[data-theme="light"] .nw-bform { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .nw-asearch input, html[data-theme="light"] .nw-bform input, html[data-theme="light"] .nw-bform select { background: rgba(255, 255, 255, .85); }
html[data-theme="light"] .nw-pill[data-st="ok"] { color: #0B7552; }
html[data-theme="light"] .nw-pill[data-st="fail"] { color: #B23338; }
html[data-theme="light"] .nw-aoff { color: #8A5A12; }

@media (prefers-reduced-motion: reduce) {
  .nw-feat { transform: none !important; }
  .nw-coin { transform: rotateX(12deg) rotateY(-14deg); }
  .nw-live[data-s="live"] i::after, .nw-art-ring { animation: none; }
  .nw-feat-img, .nw-item, .nw-chip { transition: none; }
}
