/* Nepalitheme News Blocks — extras: menu styles, share buttons, writer boxes, "Read also" box, "More stories" panel.
   Each part only acts when its choice is made in the Control Center (body classes / its own markup). */

/* ---------- Menu styles (Header → Menu bar → Menu style) */
:is(.ntp-nav-style-nb-thick, .ntp-nav-style-nb-top, .ntp-nav-style-nb-dash) .ntp-menu > li > a::after { content: ""; position: absolute; background: var(--ntp-nav-active); transition: transform .22s var(--ntp-ease, ease); }
.ntp-nav-style-nb-thick .ntp-menu > li > a::after { right: 0; bottom: 0; left: 0; height: 4px; transform: scaleY(0); transform-origin: bottom; }
.ntp-nav-style-nb-top .ntp-menu > li > a::after { top: 0; right: 0; left: 0; height: 4px; transform: scaleY(0); transform-origin: top; }
.ntp-nav-style-nb-dash .ntp-menu > li > a::after { bottom: 9px; left: 50%; width: 20px; height: 3px; margin-left: -10px; border-radius: 3px; transform: scaleX(0); }
:is(.ntp-nav-style-nb-thick, .ntp-nav-style-nb-top, .ntp-nav-style-nb-dash) .ntp-menu > li > a:hover::after,
:is(.ntp-nav-style-nb-thick, .ntp-nav-style-nb-top, .ntp-nav-style-nb-dash) .ntp-menu > :is(.current-menu-item, .current-menu-ancestor, .current-category-ancestor, .is-mega-open) > a::after { transform: none; }
.ntp-nav-style-nb-round .ntp-menu > li > a { height: 36px; margin: 10px 2px; border-radius: 8px; }
.ntp-nav-style-nb-round .ntp-menu > li > a:hover, .ntp-nav-style-nb-round .ntp-menu > :is(.current-menu-item, .current-menu-ancestor, .current-category-ancestor, .is-mega-open) > a { background: var(--ntp-nav-active); color: #fff !important; }
.ntp-nav-style-nb-slash .ntp-menu > li + li > a::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 16px; margin-top: -8px; background: currentColor; opacity: .32; transform: rotate(20deg); }
.ntp-nav-style-nb-slash .ntp-menu > li > a:hover, .ntp-nav-style-nb-slash .ntp-menu > :is(.current-menu-item, .current-menu-ancestor, .current-category-ancestor, .is-mega-open) > a { color: var(--ntp-nav-active) !important; }

/* ---------- Share buttons (Article → Sharing → Share button design). The count rail keeps its own look. */
.nnb-share .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { transition: transform .2s, filter .2s, background .2s, color .2s; }
body:is(.nnb-share-label, .nnb-share-pill, .nnb-share-outline, .nnb-share-text, .nnb-share-stack, .nnb-share-big) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { content: attr(aria-label); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
body.nnb-share-label .ntp-share:not(.ntp-share-vertical) .ntp-share-btn,
body.nnb-share-pill .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: auto; height: 36px; gap: 7px; padding: 0 14px; border-radius: 4px; }
body.nnb-share-pill .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { border-radius: 999px; }
body:is(.nnb-share-label, .nnb-share-pill) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn .ntp-ico { width: 16px; height: 16px; }
body.nnb-share-square .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 34px; height: 34px; border-radius: 0; }
body.nnb-share-round .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 38px; height: 38px; border-radius: 9px; }
body.nnb-share-outline .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { --c: currentColor; width: auto; height: 34px; gap: 7px; padding: 0 12px; border-radius: 4px; background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--c); }
body.nnb-share-text .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: auto; height: 30px; gap: 5px; padding: 0 4px; border-radius: 0; background: transparent !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-facebook { color: #1877f2 !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-x { color: var(--ntp-heading) !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-whatsapp { color: #16a34a !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-viber { color: #7360f2 !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-telegram { color: #229ed9 !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-sh-linkedin { color: #0a66c2 !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) :is(.ntp-sh-copy, .nnb-sh-more) { color: var(--ntp-muted) !important; }
body:is(.nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:hover { transform: none; filter: none; }
body.nnb-share-outline .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent) !important; }
body.nnb-share-stack .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { flex-direction: column; width: 70px; height: 54px; gap: 5px; border-radius: 4px; }
body.nnb-share-stack .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { font-size: 11.5px; }
body.nnb-share-mono .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { background: var(--ntp-primary) !important; }
body.nnb-share-mono .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:hover { background: var(--ntp-secondary) !important; filter: none; }
body.nnb-share-big .ntp-share:not(.ntp-share-vertical) { flex-wrap: wrap; }
body.nnb-share-big .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { flex: 1 1 104px; width: auto; height: 44px; gap: 8px; border-radius: 6px; }
@media (max-width: 600px) {
	body:is(.nnb-share-label, .nnb-share-pill, .nnb-share-outline, .nnb-share-text) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { display: none; }
	body:is(.nnb-share-label, .nnb-share-pill, .nnb-share-outline) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 38px; padding: 0; }
	body.nnb-share-big .ntp-share:not(.ntp-share-vertical) .ntp-share-label { flex: 1 1 100%; }
	body.nnb-share-big .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { flex-basis: 40px; }
	body.nnb-share-big .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { display: none; }
}
/* "More" button: the phone's own share sheet (added by extras.js where the browser has one) */
.nnb-sh-more { background: var(--ntp-heading); }

/* ---------- Writer boxes (Article → लेखक / Writer → Writer box design) */
.nnb-wbs.is-group { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.nnb-wbs-about.is-group, .nnb-wbs-strip.is-group { grid-template-columns: 1fr; }
.nnb-wb { position: relative; color: var(--ntp-text); }
.nnb-wb .ntp-wsocial { gap: 6px; }
.nnb-wb-more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ntp-primary) !important; }
.nnb-wb-more b { font-weight: 800; }
.nnb-wb-more .ntp-ico { width: 15px; height: 15px; }

.nnb-wb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 26px 26px; border: 1px solid var(--ntp-border); border-radius: var(--ntp-radius); background: var(--ntp-surface); box-shadow: var(--ntp-shadow); text-align: center; }
.nnb-wb-center .nnb-wb-photo { margin-bottom: 10px; padding: 4px; border: 2px solid var(--ntp-primary); border-radius: 50%; }
.nnb-wb-center .ntp-wphoto { width: 104px; height: 104px; }
.nnb-wb-center .ntp-wmeta { justify-content: center; }
.nnb-wb-center .ntp-wbio { max-width: 620px; }
.nnb-wb-center .ntp-wsocial { justify-content: center; margin-top: 14px; }
.nnb-wb-center .nnb-wb-more { margin-top: 14px; padding: 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--ntp-primary) 10%, transparent); }
.nnb-wb-center .nnb-wb-more:hover { background: var(--ntp-primary); color: #fff !important; }

.nnb-wb-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 22px 24px 22px 28px; border: 1px solid var(--ntp-border); border-radius: var(--ntp-radius); background: var(--ntp-surface); box-shadow: var(--ntp-shadow); overflow: hidden; }
.nnb-wb-row::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--ntp-primary); }
.nnb-wb-row .ntp-wphoto { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; }
.nnb-wb-row .ntp-wdesig { color: var(--ntp-primary); font-weight: 700; }
.nnb-wb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ntp-border); }

.nnb-wb-about { border: 1px solid var(--ntp-border); border-radius: var(--ntp-radius); background: var(--ntp-surface); box-shadow: var(--ntp-shadow); overflow: hidden; }
.nnb-wb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--ntp-border); background: var(--ntp-soft); }
.nnb-wb-label { position: relative; padding-left: 12px; color: var(--ntp-heading); font-size: 16px; font-weight: 800; }
.nnb-wb-label::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; width: 4px; border-radius: 2px; background: var(--ntp-primary); }
.nnb-wb-top .ntp-wsocial-btn { width: 30px; height: 30px; }
.nnb-wb-me { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px; }
.nnb-wb-me .ntp-wphoto { width: 88px; height: 88px; }
.nnb-wb-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; padding: 0 8px; list-style: none; border-top: 1px solid var(--ntp-border); }
.nnb-wb-list li { display: flex; gap: 10px; padding: 16px 12px; }
.nnb-wb-list li + li { border-left: 1px solid var(--ntp-border); }
.nnb-wb-n { flex: none; color: var(--ntp-primary); font-size: 30px; font-weight: 800; line-height: 1; }
.nnb-wb-list a { display: block; color: var(--ntp-heading) !important; font-size: 15px; font-weight: 700; line-height: 1.5; }
.nnb-wb-list a:hover { color: var(--ntp-primary) !important; }
.nnb-wb-list small { display: block; margin-top: 4px; color: var(--ntp-muted); font-size: 12.5px; }
.nnb-wb-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 20px 20px; padding: 11px; border-radius: var(--ntp-radius-sm); background: var(--ntp-primary); color: #fff !important; font-weight: 700; }
.nnb-wb-btn:hover { filter: brightness(1.08); }
.nnb-wb-btn .ntp-ico { width: 16px; height: 16px; }
.nnb-wb-list + .nnb-wb-btn { margin-top: 4px; }

.nnb-wb-plain { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 10px; border-top: 1px solid var(--ntp-border); border-bottom: 1px solid var(--ntp-border); text-align: center; }
.nnb-wb-plain .ntp-wphoto { width: 84px; height: 84px; margin-bottom: 8px; }
.nnb-wb-plain .ntp-wmeta { justify-content: center; }
.nnb-wb-plain .ntp-wsocial { justify-content: center; margin-top: 12px; }
.nnb-wb-plain .nnb-wb-more { margin-top: 10px; }

.nnb-wb-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--ntp-radius); background: linear-gradient(110deg, var(--ntp-primary), color-mix(in srgb, var(--ntp-primary) 70%, var(--ntp-secondary))); color: #fff; }
.nnb-wb-strip .ntp-wphoto { width: 64px; height: 64px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.nnb-wb-strip .nnb-wb-main { flex: 1 1 auto; min-width: 0; }
.nnb-wb-strip :is(.ntp-wname a, .ntp-wname > span, .ntp-wmeta) { color: #fff !important; }
.nnb-wb-strip .ntp-wtype { background: rgba(255, 255, 255, .2); color: #fff; }
.nnb-wb-strip .nnb-wb-more { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ntp-primary) !important; }

@media (max-width: 600px) {
	.nnb-wb-row { grid-template-columns: 1fr; justify-items: center; padding: 22px 18px; text-align: center; }
	.nnb-wb-row .ntp-wmeta, .nnb-wb-foot { justify-content: center; }
	.nnb-wb-me { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.nnb-wb-me .ntp-wmeta { justify-content: center; }
	.nnb-wb-list li + li { border-top: 1px solid var(--ntp-border); border-left: 0; }
	.nnb-wb-strip { flex-wrap: wrap; }
}

/* ---------- "यो पनि पढ्नुहोस्" (Article → After article → "Read also" box design) */
.ntp-inline-related.nnb-irp { display: block; gap: 0; margin: 1.6em 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 1rem; clear: both; }
.nnb-irp .nnb-irp-label { display: block; margin-bottom: 10px; color: var(--ntp-primary); font-size: 14.5px; font-weight: 800; }
.nnb-irp .nnb-irp-list { display: grid; gap: 10px; }
.nnb-irp a.nnb-irp-item { display: flex; align-items: center; gap: 12px; color: var(--ntp-heading) !important; text-decoration: none !important; }
.nnb-irp a.nnb-irp-item:hover b { color: var(--ntp-primary); }
.nnb-irp .nnb-irp-item b { font-size: 16px; font-weight: 700; line-height: 1.5; transition: color .2s; }
.nnb-irp .nnb-irp-img { flex: none; overflow: hidden; border-radius: var(--ntp-radius-sm); }
.nnb-irp .nnb-irp-img img { display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: cover; border-radius: 0 !important; }

.nnb-irp.is-thumbs { padding: 16px 18px; border-radius: var(--ntp-radius); background: var(--ntp-soft); }
.nnb-irp.is-thumbs .nnb-irp-img { width: 84px; height: 58px; }

.nnb-irp.is-cards .nnb-irp-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.nnb-irp.is-cards a.nnb-irp-item { flex-direction: column; align-items: stretch; gap: 8px; }
.nnb-irp.is-cards .nnb-irp-img { aspect-ratio: 16 / 10; width: 100%; }
.nnb-irp.is-cards .nnb-irp-item b { font-size: 15px; }

.nnb-irp.is-bars .nnb-irp-item { padding-left: 12px; border-left: 4px solid #38bdf8; }
.nnb-irp.is-bars .nnb-irp-item:nth-child(3n+2) { border-left-color: #22c55e; }
.nnb-irp.is-bars .nnb-irp-item:nth-child(3n+3) { border-left-color: #ef4444; }

.nnb-irp.is-line { padding: 14px 0; border-top: 2px solid var(--ntp-heading); border-bottom: 1px solid var(--ntp-border); }
.nnb-irp.is-line .nnb-irp-item + .nnb-irp-item { padding-top: 10px; border-top: 1px dashed var(--ntp-border); }

.nnb-irp.is-half { padding: 14px 16px; border-top: 3px solid var(--ntp-primary); border-radius: 0 0 var(--ntp-radius-sm) var(--ntp-radius-sm); background: var(--ntp-soft); }
.nnb-irp.is-half .nnb-irp-img { width: 64px; height: 48px; }
.nnb-irp.is-half .nnb-irp-item b { font-size: 14.5px; }
@media (min-width: 768px) { .nnb-irp.is-half { float: right; clear: right; width: 44%; margin: .3em 0 1em 1.6em; } }

.nnb-irp.is-arrow { padding: 16px 20px; border-radius: var(--ntp-radius); background: var(--ntp-primary); }
.nnb-irp.is-arrow .nnb-irp-label { color: rgba(255, 255, 255, .85); }
.nnb-irp.is-arrow a.nnb-irp-item { color: #fff !important; }
.nnb-irp.is-arrow a.nnb-irp-item::before { content: ""; flex: none; width: 8px; height: 8px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); }
.nnb-irp.is-arrow a.nnb-irp-item:hover b { color: #fff; text-decoration: underline; }

/* ---------- "More stories" panel (Article → More stories panel) */
.nnb-ms { position: fixed; z-index: 90; bottom: calc(16px + var(--ntp-bottomnav-h, 0px)); width: min(340px, calc(100vw - 24px)); border-radius: var(--ntp-radius); background: var(--ntp-surface); box-shadow: 0 18px 50px -14px rgba(2, 8, 23, .45), 0 0 0 1px var(--ntp-border); opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.nnb-ms.side-right { right: 16px; bottom: calc(80px + var(--ntp-bottomnav-h, 0px)); } /* above the "back to top" button */
.nnb-ms.side-left { left: 16px; }
.nnb-ms.is-on { opacity: 1; transform: none; }
.nnb-ms[hidden] { display: none; }
.nnb-ms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-top: 3px solid var(--ntp-primary); border-bottom: 1px solid var(--ntp-border); border-radius: var(--ntp-radius) var(--ntp-radius) 0 0; }
.nnb-ms-head b { color: var(--ntp-heading); font-size: 15px; font-weight: 800; }
.nnb-ms-x { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--ntp-soft); color: var(--ntp-heading); font-size: 20px; line-height: 1; cursor: pointer; }
.nnb-ms-x:hover { background: var(--ntp-primary); color: #fff; }
.nnb-ms-list { display: grid; gap: 2px; max-height: min(60vh, 420px); padding: 8px; overflow-y: auto; }
.nnb-ms-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--ntp-radius-sm); color: var(--ntp-heading) !important; }
.nnb-ms-item:hover { background: var(--ntp-soft); }
.nnb-ms-t { min-width: 0; }
.nnb-ms-t b { display: -webkit-box; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nnb-ms-t small { display: block; margin-top: 3px; color: var(--ntp-muted); font-size: 12px; }
.nnb-ms-img { flex: none; overflow: hidden; border-radius: 6px; }
.nnb-ms-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nnb-ms.is-thumbs .nnb-ms-img { width: 72px; height: 52px; }
.nnb-ms.is-bars .nnb-ms-item { border-left: 4px solid #38bdf8; border-radius: 0 var(--ntp-radius-sm) var(--ntp-radius-sm) 0; }
.nnb-ms.is-bars .nnb-ms-item:nth-child(4n+2) { border-left-color: #22c55e; }
.nnb-ms.is-bars .nnb-ms-item:nth-child(4n+3) { border-left-color: #ef4444; }
.nnb-ms.is-bars .nnb-ms-item:nth-child(4n+4) { border-left-color: #f59e0b; }
.nnb-ms.is-grid .nnb-ms-list { grid-template-columns: 1fr 1fr; gap: 8px; }
.nnb-ms.is-grid .nnb-ms-item { flex-direction: column; align-items: stretch; gap: 6px; padding: 4px; }
.nnb-ms.is-grid .nnb-ms-img { aspect-ratio: 16 / 10; width: 100%; }
.nnb-ms.is-grid .nnb-ms-t b { font-size: 13.5px; }
@media (max-width: 600px) {
	/* Above the phone's floating buttons (back to top, summary) */
	.nnb-ms { right: 12px !important; left: 12px !important; bottom: calc(140px + var(--ntp-bottomnav-h, 0px)) !important; width: auto; }
	.nnb-ms-list { max-height: 46vh; }
	.nnb-ms .nnb-ms-item:nth-child(n+4) { display: none; }
	.nnb-ms.is-grid .nnb-ms-item:nth-child(n+3) { display: none; }
}
@media print { .nnb-ms { display: none !important; } }

/* ---------- Two sidebars on news pages (Article → Layout → Sidebar position) */
.ntp-single-grid.has-side2 > .nnb-side2 { grid-column: 1 / -1; order: 5; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 24px; align-items: start; }
@media (min-width: 1240px) {
	.ntp-single-grid.has-side2 > .nnb-side2 { grid-column: auto; display: block; }
	body.nnb-side2-both .ntp-single-grid.has-side.has-side2 { grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 28px; }
	body.nnb-side2-both .ntp-single-grid.has-side2 > .nnb-side2 { order: -1; }
	body.nnb-side2-both .ntp-single-grid.has-rail.has-side.has-side2 { grid-template-columns: 210px 60px minmax(0, 1fr) 290px; gap: 22px; }
	body.nnb-side2-right2 .ntp-single-grid.has-side.has-side2 { grid-template-columns: minmax(0, 1fr) 300px 220px; gap: 28px; }
	body.nnb-side2-right2 .ntp-single-grid.has-rail.has-side.has-side2 { grid-template-columns: 60px minmax(0, 1fr) 290px 210px; gap: 22px; }
	.nnb-side2 .ntp-sec-title { font-size: calc(var(--ntp-fs-section, 20px) * .85) !important; }
}

/* ---------- Share numbers (Article → Sharing → Share numbers on the buttons) */
.ntp-share-btn { position: relative; }
.nnb-sh-n { position: absolute; top: -7px; right: -7px; min-width: 20px; padding: 0 5px; border: 2px solid var(--ntp-surface, #fff); border-radius: 999px; background: var(--ntp-heading); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.ntp-share-label .nnb-sh-total { margin-left: 2px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ntp-primary) 12%, transparent); color: var(--ntp-primary); font-size: .92em; }
/* Buttons with names: the number sits after the name */
body:is(.nnb-share-label, .nnb-share-pill, .nnb-share-outline, .nnb-share-text, .nnb-share-big) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { order: 1; }
body:is(.nnb-share-label, .nnb-share-pill, .nnb-share-outline, .nnb-share-text, .nnb-share-big) .ntp-share:not(.ntp-share-vertical) .nnb-sh-n { position: static; order: 2; min-width: 0; padding: 0 0 0 8px; border: 0; border-left: 1px solid currentColor; border-radius: 0; background: none; color: inherit; font-size: 12.5px; opacity: .85; }
body.nnb-share-stack .ntp-share:not(.ntp-share-vertical) .nnb-sh-n { top: 3px; right: 3px; border: 0; background: rgba(0, 0, 0, .25); }

/* ====================================================== 1.14.0 */
/* ---------- Share buttons: joined bar, joined with names, number bubble, round icon */
body:is(.nnb-share-joinedname, .nnb-share-bubble, .nnb-share-dot) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { content: attr(aria-label); font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) { gap: 0; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) .ntp-share-label { margin-right: 12px; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { border-radius: 0; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) .ntp-share-label + .ntp-share-btn { border-radius: 6px 0 0 6px; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:not(:has(~ .ntp-share-btn)) { border-radius: 0 6px 6px 0; }
body:is(.nnb-share-joined, .nnb-share-joinedname) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:hover { transform: none; filter: brightness(1.12); }
body.nnb-share-joined .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 44px; height: 38px; }
body.nnb-share-joinedname .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { flex-direction: column; width: 76px; height: 56px; gap: 5px; }
body.nnb-share-joinedname .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { font-size: 11.5px; }
body.nnb-share-bubble .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: auto; height: 34px; gap: 7px; padding: 0 13px; border-radius: 4px; }
body.nnb-share-bubble .ntp-share:not(.ntp-share-vertical) .ntp-share-btn:has(.nnb-sh-n) { margin-right: 44px; }
body.nnb-share-bubble .ntp-share:not(.ntp-share-vertical) .nnb-sh-n { top: 50%; right: auto; left: calc(100% + 8px); min-width: 30px; padding: 0 6px; border: 1px solid var(--ntp-border); border-radius: 4px; background: var(--ntp-surface, #fff); color: var(--ntp-heading); font-size: 12px; line-height: 26px; transform: translateY(-50%); }
body.nnb-share-bubble .ntp-share:not(.ntp-share-vertical) .nnb-sh-n::before { content: ""; position: absolute; top: 50%; left: -5px; width: 8px; height: 8px; margin-top: -4px; border-bottom: 1px solid var(--ntp-border); border-left: 1px solid var(--ntp-border); background: inherit; transform: rotate(45deg); }
body.nnb-share-dot .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: auto; height: 36px; gap: 8px; padding: 0 15px 0 4px; border-radius: 999px; }
body.nnb-share-dot .ntp-share:not(.ntp-share-vertical) .ntp-share-btn .ntp-ico { box-sizing: content-box; width: 14px; height: 14px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
@media (max-width: 600px) {
	body:is(.nnb-share-bubble, .nnb-share-dot) .ntp-share:not(.ntp-share-vertical) .ntp-share-btn::after { display: none; }
	body.nnb-share-bubble .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 38px; padding: 0; }
	body.nnb-share-dot .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { padding: 0 4px; }
	body.nnb-share-joinedname .ntp-share:not(.ntp-share-vertical) .ntp-share-btn { width: 58px; }
}
/* Reads and comments at the end of the share bar */
.nnb-sh-stats { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.nnb-sh-stat { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--ntp-border); border-radius: 999px; color: var(--ntp-muted) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.nnb-sh-stat .ntp-ico { width: 15px; height: 15px; }
a.nnb-sh-stat:hover { border-color: var(--ntp-primary); color: var(--ntp-primary) !important; }

/* ---------- "Read also": colored category tags, photo on the right */
.nnb-irp .nnb-irp-t { min-width: 0; color: inherit; } /* the theme colours every span of its own box (.ntp-inline-related span) */
.nnb-irp .nnb-irp-img { color: inherit; }
.nnb-irp .nnb-irp-cat, .nnb-irp-cat, .nnb-ms-cat { display: inline-block; margin-bottom: 5px; padding: 1px 7px; border-radius: 3px; background: #0ea5e9; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.6; }
.nnb-irp.is-tags .nnb-irp-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px 22px; }
.nnb-irp.is-tags .nnb-irp-item:nth-child(3n+2) .nnb-irp-cat, .nnb-ms.is-tags .nnb-ms-item:nth-child(3n+2) .nnb-ms-cat { background: #16a34a; }
.nnb-irp.is-tags .nnb-irp-item:nth-child(3n+3) .nnb-irp-cat, .nnb-ms.is-tags .nnb-ms-item:nth-child(3n+3) .nnb-ms-cat { background: #dc2626; }
.nnb-irp.is-tags .nnb-irp-cat { display: table; }
.nnb-irp.is-thumbsr { padding: 16px 18px; border-radius: var(--ntp-radius); background: var(--ntp-soft); }
.nnb-irp.is-thumbsr a.nnb-irp-item { justify-content: space-between; }
.nnb-irp.is-thumbsr .nnb-irp-img { order: 2; width: 84px; height: 58px; }
/* ---------- "More stories" panel: tags, photo on the right */
.nnb-ms .nnb-ms-cat { display: table; margin-bottom: 3px; }
.nnb-ms.is-thumbsr .nnb-ms-item { justify-content: space-between; }
.nnb-ms.is-thumbsr .nnb-ms-img { order: 2; width: 72px; height: 52px; }

/* ---------- "Read also" with one or two news (1.14.2): one fills the box, two share it half and half; phones: one under the other */
.nnb-irp.n1 .nnb-irp-list { grid-template-columns: minmax(0, 1fr); }
.nnb-irp.is-cards.n1 a.nnb-irp-item { flex-direction: row; align-items: center; gap: 16px; }
.nnb-irp.is-cards.n1 .nnb-irp-img { width: min(42%, 260px); }
.nnb-irp.is-cards.n1 .nnb-irp-item b { font-size: 17px; }
@media (min-width: 600px) {
	.nnb-irp.n2:not(.is-half) .nnb-irp-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; }
	.nnb-irp.is-line.n2 .nnb-irp-item + .nnb-irp-item { padding-top: 0; padding-left: 24px; border-top: 0; border-left: 1px dashed var(--ntp-border); }
	.nnb-irp.is-line.n2 .nnb-irp-list { column-gap: 0; }
	.nnb-irp.is-line.n2 .nnb-irp-item:first-child { padding-right: 24px; }
}

/* ---------- "Read also": white cards with a round photo, no title line (1.14.3) */
.nnb-irp.is-roundcards .nnb-irp-list { gap: 16px; }
.nnb-irp.is-roundcards a.nnb-irp-item { gap: 12px; padding: 12px; border: 1px solid var(--ntp-border, #e5e5e5); border-radius: 8px; background: var(--ntp-surface, #fff); transition: box-shadow .15s ease, transform .15s ease; }
.nnb-irp.is-roundcards a.nnb-irp-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.nnb-irp.is-roundcards .nnb-irp-img { width: 64px; height: 64px; border-radius: 50%; background: #f0f0f0; }
.nnb-irp.is-roundcards .nnb-irp-img .ntp-noimg { display: block; width: 100%; height: 100%; background: #f0f0f0; font-size: 0; }
.nnb-irp.is-roundcards .nnb-irp-item b { display: -webkit-box; overflow: hidden; font-size: 18px; font-weight: 700; line-height: 1.45; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (min-width: 600px) { .nnb-irp.is-roundcards.n2 .nnb-irp-list { gap: 16px; } }
@media (max-width: 599px) { .nnb-irp.is-roundcards .nnb-irp-item b { font-size: 16.5px; } }
