/*
Theme Name: NetBixLabs WP Theme
Theme URI: https://netbixlabs.com/
Author: NetBixLabs.com
Author URI: https://netbixlabs.com/
Description: Tema editorial wordpress bergaya threads
Version: 2.5.9
Requires at least: 6.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netbix-threads
Tags: blog, news, editorial, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --nb-bg: #f8f5ee;
  --nb-surface: #fffdf8;
  --nb-surface-soft: #fbf8f0;
  --nb-text: #0b1f33;
  --nb-muted: #66727c;
  --nb-border: #ded9cd;
  --nb-border-dark: #c8c0ad;
  --nb-blue: #0b1f33;
  --nb-blue-deep: #8b6a16;
  --nb-blue-soft: #f5ecd9;
  --nb-purple: #0b1f33;
  --nb-green: #8b6a16;
  --nb-gold: #b58a1b;
  --nb-radius: 6px;
  --nb-shell: 1140px;
  --nb-rail: 190px;
  --nb-trending: 280px;
  --nb-shadow: 0 10px 30px rgba(11, 31, 51, .08);
}

html[data-theme="dark"], body[data-theme="dark"] {
  --nb-bg: #071521;
  --nb-surface: #0b1f33;
  --nb-surface-soft: #102b43;
  --nb-text: #f8f5ee;
  --nb-muted: #c2c7ca;
  --nb-border: #29445b;
  --nb-border-dark: #3b5c73;
  --nb-blue: #b58a1b;
  --nb-blue-deep: #f0d98a;
  --nb-blue-soft: #2d2a20;
  --nb-purple: #f0d98a;
  --nb-green: #b58a1b;
  --nb-gold: #b58a1b;
  --nb-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; max-width: 100%; margin: 0; padding-top: 7px; overflow-x: hidden; background: var(--nb-bg); color: var(--nb-text); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--nb-blue-deep); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .7rem 1rem; clip: auto; z-index: 1000; background: var(--nb-text); color: var(--nb-surface); border-radius: 4px; }

.nb-shell { width: min(calc(100% - 40px), var(--nb-shell)); margin: 0 auto; }
.nb-header { position: sticky; top: 0; z-index: 30; min-height: 54px; background: #ffffff; border-bottom: 1px solid var(--nb-border); backdrop-filter: blur(14px); }
[data-theme="dark"] .nb-header { background: #0b1f33 !important; border-bottom-color: #1e3a50; }
.nb-header-inner { min-height: 54px; display: flex; align-items: center; gap: 1.1rem; }
.nb-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nb-brand-name { color: var(--nb-blue); font-size: 17px; font-weight: 800; letter-spacing: .08em; }
.nb-brand .custom-logo { max-height: 32px; width: auto; }
.nb-logo-mode-switcher { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.nb-logo-mode-switcher .nb-responsive-logo { display: block; width: var(--nb-main-logo-width, 245px); max-width: calc(100vw - 160px); max-height: var(--nb-main-logo-height, 68px); height: auto; object-fit: contain; }
.nb-logo-mode-switcher .nb-responsive-logo.is-dark { width: var(--nb-dark-logo-width, 245px); max-height: var(--nb-dark-logo-height, 68px); }
.nb-utility-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1.15rem; margin-left: auto; color: var(--nb-muted); font-size: 11px; white-space: nowrap; }
.nb-utility-nav a:hover { color: var(--nb-text); }
.nb-header-tagline { color: var(--nb-muted); font-size: 9px; letter-spacing: .18em; }
.nb-header-actions { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.nb-theme-pill { padding: .42rem .72rem; border: 1px solid var(--nb-border); border-radius: 999px; background: var(--nb-surface); color: var(--nb-text); font-size: 11px; }
.nb-theme-pill:hover { border-color: var(--nb-blue); color: var(--nb-blue-deep); }
.nb-theme-icon, .nb-sign-in-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 5px; border: 0; background: transparent; color: var(--nb-text); }
.nb-theme-icon svg, .nb-sign-in-icon svg { width: 19px; height: 19px; }
.nb-theme-icon:hover, .nb-sign-in-icon:hover { background: var(--nb-surface-soft); border-radius: 50%; }
.nb-live-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--nb-muted); font-size: 10px; white-space: nowrap; }
.nb-live-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--nb-green); }
.nb-menu-toggle { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--nb-border); border-radius: 4px; background: var(--nb-surface); color: var(--nb-text); }
.nb-menu-toggle svg { width: 18px; height: 18px; }

.nb-main { min-height: 70vh; padding: 15px 0 64px; }
.nb-reference-shell { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 1fr) var(--nb-trending); gap: 26px; align-items: start; }
.nb-category-rail { min-width: 0; }
.nb-category-nav { position: sticky; top: 82px; }
.nb-threads-rail { grid-column: 1; grid-row: 1; position: sticky; top: 82px; }
.nb-reference-feed { grid-column: 2; grid-row: 1; }
.nb-trending-panel { grid-column: 3; grid-row: 1; }
.nb-sidebar-menu ul, .nb-sidebar-sources { list-style: none; padding: 0; margin: 0; }
.nb-sidebar-menu li { margin: 2px 0; }
.nb-sidebar-menu li a, .nb-sidebar-more a { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 10px; border-radius: 7px; color: var(--nb-text); font-size: 14px; }
.nb-sidebar-menu li a:hover, .nb-sidebar-more a:hover { background: var(--nb-surface-soft); color: var(--nb-blue-deep); }
.nb-sidebar-menu li.is-active a { background: var(--nb-blue-soft); color: var(--nb-text); font-weight: 700; }
[data-theme="dark"] .nb-sidebar-menu li.is-active a { background: var(--nb-surface-soft); }
.nb-sidebar-svg { width: 21px; height: 21px; flex: 0 0 21px; }
.nb-sidebar-section { margin-top: 36px; }
.nb-sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 8px; color: var(--nb-muted); font-size: 12px; }
.nb-sidebar-section-heading a { color: var(--nb-muted); font-size: 12px; }
.nb-sidebar-section-heading a:hover { color: var(--nb-blue-deep); }
.nb-sidebar-feed-caption { padding: 0 10px 5px; color: var(--nb-muted); font-size: 11px; }
.nb-source-item { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 7px 10px; color: var(--nb-text); font-size: 13px; }
.nb-source-item:hover { color: var(--nb-blue-deep); }
.nb-source-item .nb-sidebar-svg { width: 18px; height: 18px; flex-basis: 18px; color: var(--nb-muted); }
.nb-source-logo { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; object-fit: cover; }
.nb-source-item small { margin-left: auto; color: var(--nb-muted); font-size: 10px; }
.nb-sidebar-empty { padding: 0 10px; color: var(--nb-muted); font-size: 12px; }
.nb-sidebar-more { margin-top: 30px; }
.nb-category-nav > ul, .nb-category-nav .menu, .nb-reference-categories { list-style: none; padding: 0; margin: 0; }
.nb-category-nav > ul:not(.nb-reference-categories), .nb-category-nav .menu { margin-bottom: 12px; }
.nb-category-nav > ul:not(.nb-reference-categories) a, .nb-category-nav .menu a { display: block; padding: 8px 10px; color: var(--nb-muted); font-size: 13px; }
.nb-reference-categories li a { display: block; padding: 9px 10px; color: var(--nb-muted); font-size: 13px; }
.nb-reference-categories li.is-active a { color: var(--nb-blue-deep); background: var(--nb-blue-soft); font-weight: 700; }
.nb-reference-categories li a:hover { color: var(--nb-blue-deep); }

.nb-reference-feed { min-width: 0; max-width: 640px; }
.nb-reference-hero { padding: 0 0 20px; }
.nb-category-strip { display: flex; overflow-x: auto; gap: 0; margin: 0 0 28px; border-bottom: 1px solid var(--nb-border); scrollbar-width: thin; }
.nb-category-strip a { flex: 0 0 auto; position: relative; padding: 11px 16px 12px; color: var(--nb-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nb-category-strip a:hover { color: var(--nb-blue-deep); }
.nb-category-strip a.is-active { color: var(--nb-blue-deep); background: var(--nb-blue-soft); }
.nb-category-strip a.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--nb-blue); content: ""; }
.nb-category-strip-mobile { display: none; }
.nb-eyebrow { margin: 0 0 8px; color: var(--nb-muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nb-reference-hero h1 { margin: 0 0 5px; color: var(--nb-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.nb-reference-hero > p:last-child { margin: 0; color: var(--nb-muted); font-size: 14px; }
.nb-reference-search { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px auto; gap: 8px; margin: 0 0 15px; }
.nb-input, .nb-select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--nb-border); border-radius: 5px; outline: none; background: var(--nb-surface); color: var(--nb-text); }
.nb-input:focus, .nb-select:focus { border-color: var(--nb-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nb-blue) 18%, transparent); }
.nb-search-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--nb-blue); border-radius: 5px; background: var(--nb-blue); color: var(--nb-surface); font-size: 13px; font-weight: 700; }
.nb-search-button:hover { background: var(--nb-blue-deep); }
.nb-feed-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--nb-border); border-bottom: 0; background: var(--nb-surface); }
.nb-feed-tabs a { position: relative; padding: 13px 10px; color: var(--nb-muted); font-weight: 700; text-align: center; }
.nb-feed-tabs a.active { color: var(--nb-blue-deep); }
.nb-feed-tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--nb-blue); content: ""; }

.nb-signal-card { padding: 22px 24px 17px; border: 1px solid var(--nb-border); border-bottom: 0; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-signal-card:first-child { border-radius: 0 0 0 0; }
.nb-signal-card:last-child { border-bottom: 1px solid var(--nb-border); }
.nb-signal-header { display: flex; align-items: center; gap: 10px; }
.nb-signal-avatar { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: var(--nb-blue); color: var(--nb-surface); font-size: 16px; font-weight: 700; }
.nb-signal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nb-signal-author { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--nb-muted); font-size: 11px; }
.nb-signal-author strong { color: var(--nb-muted); font-weight: 400; }
.nb-more-button { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--nb-muted); letter-spacing: 2px; }
.nb-signal-category { margin: 17px 0 5px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nb-signal-category a, .nb-signal-tags a { color: var(--nb-blue-deep); }
.nb-signal-title { margin: 0 0 9px; color: var(--nb-text); font-size: 23px; letter-spacing: -.035em; line-height: 1.15; }
.nb-signal-title a:hover { color: var(--nb-blue-deep); }
.nb-read-more { display: inline-block; margin-left: 4px; color: var(--nb-blue-deep); font-weight: 700; white-space: nowrap; }
.nb-signal-summary { margin: 0 0 10px; padding: 13px 15px; border-left: 3px solid var(--nb-blue); border-radius: 5px; background: var(--nb-blue-soft); color: var(--nb-muted); font-size: 15px; line-height: 1.5; }
.nb-signal-image { display: block; overflow: hidden; margin: 12px 0; border-radius: 5px; }
.nb-signal-image img { width: 100%; max-height: 360px; object-fit: cover; }
.nb-signal-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 7px 0 7px; font-size: 11px; }
.nb-signal-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--nb-muted); font-size: 10px; }
.nb-signal-meta .nb-date { color: inherit; font-size: inherit; }
.nb-signal-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--nb-border); color: var(--nb-muted); font-size: 11px; }
.nb-signal-actions a, .nb-signal-actions button { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.nb-signal-actions a:hover, .nb-signal-actions button:hover { color: var(--nb-blue-deep); }
.nb-related { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--nb-border); }
.nb-related h3 { margin: 0 0 8px; color: var(--nb-muted); font-size: 11px; font-weight: 700; }
.nb-related a { display: block; padding: 3px 0; color: var(--nb-blue-deep); font-size: 12px; font-weight: 700; line-height: 1.35; }
.nb-related a:hover { text-decoration: underline; }

.nb-trending-panel { min-width: 0; }
.nb-trending-card { position: sticky; top: 82px; padding: 20px 17px 0; border: 1px solid var(--nb-border); border-radius: 6px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-trending-card h2 { margin: 0; padding-bottom: 13px; border-bottom: 1px solid var(--nb-border); color: var(--nb-text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nb-trending-card ol { list-style: none; padding: 0; margin: 0; counter-reset: trend; }
.nb-trending-card li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--nb-border); }
.nb-trending-card li:last-child { border-bottom: 0; }
.nb-trending-rank { color: var(--nb-muted); font-size: 11px; }
.nb-trending-card li a { color: var(--nb-purple); font-size: 13px; font-weight: 700; line-height: 1.35; text-decoration: underline; }
.nb-trending-card li a:hover { color: var(--nb-blue-deep); }
.nb-trending-card small { display: block; margin-top: 3px; color: var(--nb-muted); font-size: 10px; }

.nb-feed-layout { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 1fr) var(--nb-trending); gap: 26px; align-items: start; }
.nb-feed-layout > .nb-feed { grid-column: 2; grid-row: 1; min-width: 0; max-width: 640px; }
.nb-feed-heading, .nb-hero, .nb-page-title { color: var(--nb-text); }
.nb-archive-description { margin: 0 0 18px; color: var(--nb-muted); font-size: 14px; }
.nb-search-form { display: flex; gap: 8px; margin: 0 0 18px; }
.nb-search-form .nb-input { flex: 1; }
.nb-load-more-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0 6px; }
.nb-load-more-button { min-width: 130px; padding: 10px 17px; border: 1px solid var(--nb-blue); border-radius: 999px; background: var(--nb-blue); color: #fff; font-size: 13px; font-weight: 700; }
.nb-load-more-button:hover { background: var(--nb-blue-deep); }
.nb-load-more-button:disabled { cursor: wait; opacity: .7; }
.nb-load-more-status { min-height: 18px; color: var(--nb-muted); font-size: 11px; }
.nb-load-sentinel { display: block; width: 1px; height: 1px; }
.nb-pagination, .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.nb-pagination a, .nav-links a, .page-numbers { padding: .6rem .9rem; border: 1px solid var(--nb-border); border-radius: 5px; background: var(--nb-surface); font-size: .82rem; font-weight: 700; }
.nb-empty { padding: 3rem 1rem; color: var(--nb-muted); text-align: center; }

.nb-single { max-width: 760px; margin: 0 auto; }
.nb-single-header { padding: 1rem 0 2rem; }
.nb-single-title { margin: .55rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.03; letter-spacing: -.065em; }
.nb-single-excerpt { margin: 0; color: var(--nb-muted); font-size: 1.1rem; }
.nb-single-byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; color: var(--nb-muted); font-size: .82rem; }
.nb-avatar { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: var(--nb-blue); color: var(--nb-surface); }
.nb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nb-entry-content { min-width: 0; max-width: 100%; overflow-wrap: break-word; word-break: break-word; font-size: 1.05rem; }
.nb-entry-content p, .nb-entry-content li, .nb-entry-content a { overflow-wrap: anywhere; }
.nb-page-layout > .nb-single, .nb-feed-layout > *, .nb-page-layout > * { min-width: 0; }
.nb-entry-content h2, .nb-entry-content h3, .nb-entry-content h4 { margin-top: 2rem; line-height: 1.2; }
.nb-entry-content p { margin: 0 0 1.25rem; }
.nb-entry-content a { color: var(--nb-blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.nb-entry-content blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--nb-blue); color: var(--nb-muted); background: var(--nb-blue-soft); }
.nb-entry-content pre { overflow: auto; padding: 1rem; border-radius: 5px; background: var(--nb-surface-soft); }
.nb-entry-content img { border-radius: 5px; }
.nb-video-single { min-width: 0; max-width: 100%; overflow-x: hidden; }
.nb-video-single .nb-entry-content { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.nb-video-single .nb-entry-content > iframe,
.nb-video-single .nb-entry-content > video,
.nb-video-single .nb-entry-content > embed,
.nb-video-single .nb-entry-content > object,
.nb-video-single .nb-entry-content .wp-block-embed,
.nb-video-single .nb-entry-content .wp-block-video,
.nb-video-single .nb-entry-content .wp-block-embed__wrapper { display: block; width: 100% !important; max-width: 100% !important; min-width: 0; overflow: hidden; }
.nb-video-single .nb-entry-content iframe,
.nb-video-single .nb-entry-content video,
.nb-video-single .nb-entry-content embed,
.nb-video-single .nb-entry-content object { max-width: 100% !important; border: 0; }
.nb-video-single .nb-entry-content iframe { aspect-ratio: 16 / 9; height: auto; }
.nb-video-single .nb-entry-content video { height: auto; }
.nb-video-single .nb-entry-content embed,
.nb-video-single .nb-entry-content object { height: auto; }
.nb-video-single .nb-entry-content pre { max-width: 100%; overflow-x: auto; }
.nb-featured-image { margin: 1.5rem 0; overflow: hidden; border-radius: 6px; }
.nb-post-footer { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--nb-border); }
.nb-tag { padding: .36rem .7rem; border-radius: 999px; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: .78rem; font-weight: 700; }

.nb-comments { max-width: 760px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--nb-border); }
.nb-comments-title { font-size: 1.15rem; }
.nb-comment-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.nb-comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--nb-border); }
.nb-comment-row { display: flex; align-items: flex-start; gap: .75rem; }
.nb-comment-avatar { flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: var(--nb-surface-soft); }
.nb-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nb-comment-main { min-width: 0; flex: 1; }
.nb-comment-author { color: var(--nb-text); font-weight: 800; }
.nb-comment-meta { display: flex; flex-wrap: wrap; gap: .35rem .6rem; color: var(--nb-muted); font-size: .75rem; }
.nb-comment-content { color: var(--nb-muted); font-size: .9rem; }
.nb-comment-content p { margin: .35rem 0; }
.nb-comment-actions { margin-top: .45rem; }
.nb-comment-actions a, #cancel-comment-reply-link { color: var(--nb-muted); font-size: .76rem; font-weight: 800; }
.nb-comment-list .children { list-style: none; margin: .85rem 0 0 1.35rem; padding: 0 0 0 1.2rem; border-left: 2px solid var(--nb-border); }
.nb-comment-list .children li { padding: .8rem 0; }
.comment-form-comment label, .comment-form-author label, .comment-form-email label { display: block; margin: .8rem 0 .3rem; font-size: .82rem; font-weight: 750; }
.nb-textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--nb-border); border-radius: 5px; background: var(--nb-surface); color: var(--nb-text); }
.form-submit { margin-top: 1rem; }
.nb-button { display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid var(--nb-border); border-radius: 5px; background: var(--nb-surface); color: var(--nb-text); font-weight: 700; }
.nb-button-primary { border-color: var(--nb-blue); background: var(--nb-blue); color: #fff; }

.nb-widget-panel { padding: 18px 16px 0; border: 1px solid var(--nb-border); border-radius: 6px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-widget-panel .widget-title { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--nb-border); color: var(--nb-text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nb-widget-ranking, .nb-widget-list { list-style: none; padding: 0; margin: 0; }
.nb-widget-ranking li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--nb-border); }
.nb-widget-ranking li:last-child, .nb-widget-list li:last-child { border-bottom: 0; }
.nb-widget-ranking a, .nb-widget-list a { color: var(--nb-purple); font-size: 13px; font-weight: 700; line-height: 1.35; }
.nb-widget-ranking a { text-decoration: underline; }
.nb-widget-ranking small, .nb-widget-list small { display: block; margin-top: 3px; color: var(--nb-muted); font-size: 10px; }
.nb-widget-list li { padding: 12px 0; border-bottom: 1px solid var(--nb-border); }
.nb-widget-empty { color: var(--nb-muted); font-size: 12px; }
.nb-mobile-category-menu { display: none; position: relative; }
.nb-mobile-category-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 5px; border: 1px solid var(--nb-border); border-radius: 50%; color: var(--nb-text); font-size: 0; cursor: pointer; }
.nb-mobile-category-menu summary::before { content: ""; display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-theme="dark"] .nb-mobile-category-menu summary { color: #edf5f4; border-color: #4c6268; }
.nb-mobile-category-menu summary::-webkit-details-marker { display: none; }
.nb-mobile-category-menu nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; display: grid; min-width: 180px; max-height: 60vh; overflow-y: auto; padding: 7px; border: 1px solid var(--nb-border); border-radius: 8px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-mobile-category-menu nav a { padding: 8px 10px; color: var(--nb-text); font-size: 12px; }
.nb-mobile-category-menu nav a:hover { background: var(--nb-surface-soft); color: var(--nb-blue-deep); }

.nb-footer { padding: 2rem 0; border-top: 1px solid var(--nb-border); color: var(--nb-muted); font-size: .8rem; }
.nb-footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.nb-footer p { margin: 0; }
.nb-footer-nav ul { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; margin: 0; }

/* High-contrast dark mode. This block intentionally uses scoped selectors so older Additional CSS cannot make text unreadable. */
html[data-theme="dark"] body, body[data-theme="dark"] { background: #101516 !important; color: #f3f7f7 !important; }
html[data-theme="dark"] .nb-main, body[data-theme="dark"] .nb-main, html[data-theme="dark"] .nb-reference-shell, body[data-theme="dark"] .nb-reference-shell, html[data-theme="dark"] .nb-reference-feed, body[data-theme="dark"] .nb-reference-feed, html[data-theme="dark"] .nb-feed-layout, body[data-theme="dark"] .nb-feed-layout { background: transparent !important; }
html[data-theme="dark"] .nb-category-rail, body[data-theme="dark"] .nb-category-rail, html[data-theme="dark"] .nb-threads-rail, body[data-theme="dark"] .nb-threads-rail { color: #edf5f4 !important; }
[data-theme="dark"] .nb-header { background: rgba(23, 32, 35, .97); border-color: #33464b; }
[data-theme="dark"] .nb-header-tagline, [data-theme="dark"] .nb-utility-nav, [data-theme="dark"] .nb-utility-nav a, [data-theme="dark"] .nb-live-status { color: #b7c6c9; }
[data-theme="dark"] .nb-theme-pill, [data-theme="dark"] .nb-menu-toggle { background: #1d2b2f; border-color: #4c6268; color: #f3f7f7; }
[data-theme="dark"] .nb-sidebar-menu li a, [data-theme="dark"] .nb-sidebar-menu li a span, [data-theme="dark"] .nb-sidebar-more a, [data-theme="dark"] .nb-sidebar-more a span, [data-theme="dark"] .nb-source-item, [data-theme="dark"] .nb-source-item span { color: #edf5f4 !important; }
[data-theme="dark"] .nb-sidebar-svg, [data-theme="dark"] .nb-source-item .nb-sidebar-svg, [data-theme="dark"] .nb-source-logo { color: #dff7f5 !important; opacity: 1; }
[data-theme="dark"] .nb-sidebar-menu li a:hover, [data-theme="dark"] .nb-sidebar-more a:hover { background: #24353a; color: #9ed7fa; }
[data-theme="dark"] .nb-sidebar-menu li.is-active a { background: #2a3d42; color: #ffffff; }
[data-theme="dark"] .nb-sidebar-section-heading, [data-theme="dark"] .nb-sidebar-section-heading a, [data-theme="dark"] .nb-sidebar-feed-caption, [data-theme="dark"] .nb-sidebar-empty { color: #aebdc0; }
[data-theme="dark"] .nb-signal-card, [data-theme="dark"] .nb-trending-card, [data-theme="dark"] .nb-widget-panel { background: #172326; border-color: #33464b; }
[data-theme="dark"] .nb-signal-title, [data-theme="dark"] .nb-signal-title a, [data-theme="dark"] .nb-reference-hero h1, [data-theme="dark"] .nb-single-title, [data-theme="dark"] .nb-trending-card h2, [data-theme="dark"] .nb-widget-panel .widget-title { color: #f3f7f7; }
[data-theme="dark"] .nb-signal-author, [data-theme="dark"] .nb-signal-author strong, [data-theme="dark"] .nb-signal-meta, [data-theme="dark"] .nb-signal-actions, [data-theme="dark"] .nb-more-button { color: #b7c6c9; }
[data-theme="dark"] .nb-signal-summary, [data-theme="dark"] .nb-signal-summary p { background: #1a3b47 !important; border-left-color: #69c5f5; color: #f1fbfc !important; }
[data-theme="dark"] .nb-signal-summary .nb-read-more { color: #bfe8ff !important; }
[data-theme="dark"] .nb-signal-category a, [data-theme="dark"] .nb-signal-tags a, [data-theme="dark"] .nb-related a, [data-theme="dark"] .nb-entry-content a { color: #9ed7fa; }
[data-theme="dark"] .nb-signal-actions a, [data-theme="dark"] .nb-signal-actions button, [data-theme="dark"] .nb-comment-actions a { color: #b7c6c9; }
[data-theme="dark"] .nb-signal-actions a:hover, [data-theme="dark"] .nb-signal-actions button:hover, [data-theme="dark"] .nb-comment-actions a:hover { color: #ffffff; }
[data-theme="dark"] .nb-input, [data-theme="dark"] .nb-select, [data-theme="dark"] .nb-textarea { background: #111a1c; border-color: #486168; color: #f3f7f7; }
[data-theme="dark"] .nb-input::placeholder, [data-theme="dark"] .nb-textarea::placeholder { color: #93a6aa; opacity: 1; }
[data-theme="dark"] .nb-select option { background: #172326; color: #f3f7f7; }
[data-theme="dark"] .nb-search-button, [data-theme="dark"] .nb-button-primary { background: #69c5f5; border-color: #69c5f5; color: #071418; }
[data-theme="dark"] .nb-search-button:hover, [data-theme="dark"] .nb-button-primary:hover { background: #9edfff; color: #071418; }
[data-theme="dark"] .nb-feed-tabs, [data-theme="dark"] .nb-feed-tabs a, [data-theme="dark"] .nb-button, [data-theme="dark"] .nb-page-numbers, [data-theme="dark"] .page-numbers { background: #172326; border-color: #33464b; color: #d9e6e7; }
[data-theme="dark"] .nb-feed-tabs a.active { color: #9ed7fa; }
[data-theme="dark"] .nb-entry-content, [data-theme="dark"] .nb-entry-content p, [data-theme="dark"] .nb-entry-content li, [data-theme="dark"] .nb-comment-content, [data-theme="dark"] .nb-single-excerpt, [data-theme="dark"] .nb-footer { color: #d4e0e1; }
[data-theme="dark"] .nb-entry-content blockquote { background: #1a3b47; color: #e0eff2; }
[data-theme="dark"] .nb-signal-avatar, [data-theme="dark"] .nb-avatar { background: #2b4a53; color: #ffffff; }
[data-theme="dark"] .nb-comment-avatar { background: #263a40; }
[data-theme="dark"] .nb-trending-card li a, [data-theme="dark"] .nb-widget-ranking a, [data-theme="dark"] .nb-widget-list a { color: #d8baff; }
[data-theme="dark"] .nb-trending-card small, [data-theme="dark"] .nb-widget-ranking small, [data-theme="dark"] .nb-widget-list small { color: #aebdc0; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] strong, [data-theme="dark"] .nb-eyebrow, [data-theme="dark"] .nb-category-strip a, [data-theme="dark"] .nb-feed-tabs a { color: #f3f7f7 !important; }
[data-theme="dark"] .nb-category-strip a.is-active, [data-theme="dark"] .nb-feed-tabs a.active { color: #bfe8ff !important; background: #1c4250; }
[data-theme="dark"] .nb-category-strip { border-color: #3b555b; }
[data-theme="dark"] .nb-category-strip a.is-active::after, [data-theme="dark"] .nb-feed-tabs a.active::after { background: #80d4ff; }

.widget-title { margin: 0 0 .8rem; }

@media (max-width: 1050px) {
  .nb-reference-shell { grid-template-columns: 150px minmax(0, 1fr) 240px; gap: 18px; }
  .nb-reference-search { grid-template-columns: minmax(0, 1fr) 130px 125px auto; }
  .nb-signal-card { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 820px) {
  .nb-header-inner, .nb-main, .nb-footer-inner { min-width: 0; max-width: 100%; }
  .nb-logo-mode-switcher, .nb-utility-nav, .nb-header-actions { min-width: 0; }
  .nb-shell { width: min(calc(100% - 28px), var(--nb-shell)); }
  	.nb-mobile-category-menu { display: block; }
	.nb-header-inner > .nb-menu-toggle { display: inline-flex; flex: 0 0 34px; }

  .nb-threads-rail { display: none; position: fixed; top: 55px; right: 12px; bottom: 12px; left: 12px; z-index: 40; overflow-y: auto; padding: 14px; border: 1px solid var(--nb-border); border-radius: 10px; background: var(--nb-surface); box-shadow: 0 20px 55px rgba(0,0,0,.18); }
  .nb-threads-rail.is-open { display: block; }
  .nb-threads-rail .nb-sidebar-section { margin-top: 20px; }
  .nb-threads-rail .nb-sidebar-more { margin-top: 18px; }
  .nb-threads-rail .nb-sidebar-menu li a, .nb-threads-rail .nb-sidebar-more a { min-height: 42px; }
  .nb-threads-rail .nb-source-item { min-height: 40px; }
  .nb-reference-hero { padding-top: 0; }
  .nb-category-strip-desktop { display: none; }
  .nb-category-strip-mobile { display: flex; margin-bottom: 24px; }
  .nb-feed-layout { grid-template-columns: 1fr; }
  .nb-feed-layout > .nb-feed { grid-column: auto; grid-row: auto; max-width: none; }
  .nb-utility-nav { gap: .7rem; }
  .nb-header-tagline, .nb-utility-nav a:first-child, .nb-utility-nav a:nth-child(2) { display: none; }
  .nb-reference-shell { grid-template-columns: 1fr; }
  .nb-threads-rail, .nb-reference-feed, .nb-trending-panel, .nb-feed-layout > .nb-threads-rail, .nb-feed-layout > .nb-trending-panel { grid-column: auto; grid-row: auto; }
  .nb-threads-rail { order: 0; }
  .nb-category-rail { order: 0; }
  .nb-category-nav { position: static; }
  .nb-reference-categories { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .nb-reference-categories li { flex: 0 0 auto; }
  .nb-reference-categories li a { padding: 7px 11px; border: 1px solid var(--nb-border); border-radius: 999px; }
  .nb-reference-categories li.is-active a { border-color: var(--nb-blue); }
  .nb-reference-feed { max-width: none; }
  .nb-trending-panel { order: 3; }
  .nb-trending-card { position: static; }
}
@media (max-width: 560px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .nb-main, .nb-footer, .nb-reference-shell, .nb-feed-layout, .nb-video-shell, .nb-telegram-shell, .nb-single { width: 100%; max-width: 100%; min-width: 0; }
  body { padding-top: 7px; }
  .nb-main { padding-top: 10px; }
  .nb-main > *, .nb-footer > *, .nb-reference-shell > *, .nb-feed-layout > *, .nb-video-shell > *, .nb-telegram-shell > * { min-width: 0; max-width: 100%; }
  .nb-header { overflow: visible; }
  .nb-header-inner { width: calc(100% - 24px); max-width: 100%; overflow: visible; }
  .nb-logo-mode-switcher { max-width: calc(100vw - 150px); min-width: 0; overflow: hidden; }
  .nb-utility-nav { overflow: hidden; }
  .nb-shell { width: calc(100% - 24px); }
  .nb-header-actions { gap: .4rem; }
  .nb-utility-nav { margin-left: auto; }
  .nb-sign-in-icon, .nb-theme-icon { width: 28px; height: 28px; }
  .nb-live-status { display: none; }
  .nb-menu-toggle { display: inline-flex; }
  .nb-reference-search { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
  .nb-reference-search .nb-input { grid-column: 1 / -1; }
  .nb-reference-search .nb-input,
  .nb-reference-search .nb-select,
  .nb-reference-search .nb-search-button { min-height: 38px; }
  .nb-search-button { width: 100%; padding-right: 12px; padding-left: 12px; }
  .nb-signal-card { padding: 18px 14px 15px; }
  .nb-signal-title { font-size: 20px; }
  .nb-signal-actions { gap: 9px; font-size: 10px; }
  .nb-comment-list .children { margin-left: .35rem; padding-left: .8rem; }
  .nb-comment-avatar { flex-basis: 36px; width: 36px; height: 36px; }
  .nb-footer-inner { display: block; }
  .nb-footer-nav { margin-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }


/* Final Dark Mode canvas override: intentionally last so Additional CSS cannot leave a white page behind. */
html[data-theme="dark"] body,
body[data-theme="dark"] { background: #101516 !important; color: #f3f7f7 !important; }
html[data-theme="dark"] .nb-main,
body[data-theme="dark"] .nb-main,
html[data-theme="dark"] .nb-reference-shell,
body[data-theme="dark"] .nb-reference-shell,
html[data-theme="dark"] .nb-reference-feed,
body[data-theme="dark"] .nb-reference-feed,
html[data-theme="dark"] .nb-feed-layout,
body[data-theme="dark"] .nb-feed-layout,
html[data-theme="dark"] .nb-reference-hero,
body[data-theme="dark"] .nb-reference-hero { background: transparent !important; }
html[data-theme="dark"] .nb-reference-hero h1,
body[data-theme="dark"] .nb-reference-hero h1,
html[data-theme="dark"] .nb-page-title,
body[data-theme="dark"] .nb-page-title,
html[data-theme="dark"] .nb-reference-hero > p:last-child,
body[data-theme="dark"] .nb-reference-hero > p:last-child,
html[data-theme="dark"] .nb-eyebrow,
body[data-theme="dark"] .nb-eyebrow { color: #f3f7f7 !important; }
html[data-theme="dark"] .nb-reference-hero > p:last-child,
body[data-theme="dark"] .nb-reference-hero > p:last-child { color: #c7d5d7 !important; }
html[data-theme="dark"] .nb-threads-rail,
body[data-theme="dark"] .nb-threads-rail,
html[data-theme="dark"] .nb-category-rail,
body[data-theme="dark"] .nb-category-rail { color: #edf5f4 !important; }
html[data-theme="dark"] .nb-trending-panel,
body[data-theme="dark"] .nb-trending-panel,
html[data-theme="dark"] .nb-trending-card,
body[data-theme="dark"] .nb-trending-card,
html[data-theme="dark"] .nb-widget-panel,
body[data-theme="dark"] .nb-widget-panel { background: #172326 !important; border-color: #33464b !important; color: #edf5f4 !important; }
html[data-theme="dark"] .nb-trending-card h2,
body[data-theme="dark"] .nb-trending-card h2,
html[data-theme="dark"] .nb-trending-card li a,
body[data-theme="dark"] .nb-trending-card li a { color: #bfe8ff !important; }
html[data-theme="dark"] .nb-feed-tabs,
body[data-theme="dark"] .nb-feed-tabs { background: #172326 !important; border-color: #33464b !important; }
html[data-theme="dark"] .nb-signal-card,
body[data-theme="dark"] .nb-signal-card { background: #172326 !important; border-color: #33464b !important; color: #edf5f4 !important; }
html[data-theme="dark"] .nb-signal-card p,
body[data-theme="dark"] .nb-signal-card p { color: #c7d5d7; }
html[data-theme="dark"] .nb-signal-title a,
body[data-theme="dark"] .nb-signal-title a { color: #f3f7f7 !important; }
html[data-theme="dark"] .nb-signal-summary,
body[data-theme="dark"] .nb-signal-summary { background: #1b3b46 !important; color: #f1fbfc !important; }

html[data-theme="dark"] .nb-feed-tabs a,
body[data-theme="dark"] .nb-feed-tabs a { background: #172326 !important; color: #edf5f4 !important; border-color: #33464b !important; }
html[data-theme="dark"] .nb-feed-tabs a.active,
body[data-theme="dark"] .nb-feed-tabs a.active { background: #1c4250 !important; color: #bfe8ff !important; border-color: #33464b !important; }
html[data-theme="dark"] .nb-input,
body[data-theme="dark"] .nb-input,
html[data-theme="dark"] .nb-select,
body[data-theme="dark"] .nb-select { background: #111a1c !important; color: #f3f7f7 !important; border-color: #486168 !important; }


/* Moderate headings for the comment form and single-post related stories. */
.nb-comments .comment-reply-title,
.nb-comments #reply-title { margin: 1.6rem 0 .9rem; font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.nb-related-single { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--nb-border); }
.nb-related-single h2 { margin: 0 0 .8rem; font-size: 1.1rem; }


/* PWA, mobile navigation, and accessible header controls. */
body { font-size: calc(14px * var(--nb-font-scale, 1)); }
.nb-apps-button { min-height: 28px; padding: 0 .55rem; border: 1px solid var(--nb-border-dark); border-radius: 999px; background: var(--nb-surface); color: var(--nb-text); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.nb-apps-button:hover { background: var(--nb-text); border-color: var(--nb-text); color: var(--nb-bg); }
.nb-mobile-category-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 5px; border: 1px solid var(--nb-border); border-radius: 50%; background: var(--nb-surface); color: var(--nb-text); cursor: pointer; list-style: none; }
.nb-mobile-category-menu summary::-webkit-details-marker { display: none; }
.nb-mobile-category-menu summary svg { width: 18px; height: 18px; }
.nb-video-shell { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 640px); gap: 26px; align-items: start; }
.nb-video-source-rail { position: sticky; top: 82px; min-width: 0; }
.nb-video-feed { min-width: 0; }
.nb-video-hero { padding-bottom: 20px; }
.nb-video-hero h1 { margin: 0 0 5px; color: var(--nb-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; }
.nb-video-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nb-blue); color: var(--nb-surface); font-size: 11px; }
.nb-video-avatar { background: var(--nb-blue); }
.nb-video-source-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: 9px; }
.nb-video-rail-label { color: var(--nb-blue-deep); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.nb-video-single { min-width: 0; padding: 0 0 2rem; }
.nb-video-single .nb-entry-content { max-width: 760px; }
.nb-video-single .nb-featured-image { margin-top: 1.5rem; }
@media (min-width: 821px) {
  .nb-reference-hero h1 { font-size: calc(clamp(2.15rem, 4vw, 3.1rem) * var(--nb-font-scale, 1)); }
  .nb-signal-title { font-size: calc(23px * var(--nb-font-scale, 1)); }
  .nb-single-title { font-size: calc(42px * var(--nb-font-scale, 1)); }
}
@media (max-width: 820px) {
  .nb-video-shell { grid-template-columns: 1fr; gap: 16px; }
  .nb-video-source-rail { position: static; order: 0; }
  .nb-video-feed { order: 1; }
  .nb-video-source-rail .nb-sidebar-sources { display: flex; gap: 6px; overflow-x: auto; }
  .nb-video-source-rail .nb-sidebar-sources li { flex: 0 0 auto; }
  .nb-video-source-rail .nb-source-item { border: 1px solid var(--nb-border); border-radius: 999px; }
}
@media (max-width: 560px) {
  .nb-header-inner { gap: .35rem; }
  .nb-header-inner > .nb-menu-toggle { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; padding: 4px; }
  .nb-brand-name { font-size: 12px; letter-spacing: .04em; }
  .nb-brand .custom-logo { max-width: 116px; max-height: 27px; }
  .nb-logo-mode-switcher .nb-responsive-logo { max-width: min(165px, 48vw) !important; max-height: 48px !important; }
  .nb-header-actions { gap: .2rem; margin-left: auto; }
  .nb-apps-button { min-height: 26px; padding: 0 .4rem; font-size: 9px; }
  .nb-mobile-category-menu summary { width: 28px; height: 28px; }
  .nb-utility-nav { gap: .2rem; }
}


/* Default brand mark, share actions, Telegram desk, and back-to-top control. */
.nb-default-logo { width: 28px; height: 28px; margin-right: 7px; border-radius: 7px; object-fit: cover; }
.nb-brand { gap: 0; }
.nb-share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.nb-share-buttons-compact { display: contents; }
.nb-share-heading { color: var(--nb-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nb-share-link { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid var(--nb-border); border-radius: 999px; background: var(--nb-surface); color: var(--nb-text); font-size: 10px; font-weight: 700; }
.nb-share-link:hover { border-color: var(--nb-blue); background: var(--nb-blue-soft); color: var(--nb-blue-deep); }
.nb-share-buttons-detail { margin: 22px 0 0; padding: 14px 0 2px; border-top: 1px solid var(--nb-border); }
.nb-share-buttons-detail .nb-share-link { min-height: 30px; padding: 5px 11px; font-size: 11px; }
.nb-back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--nb-border); border-radius: 50%; background: var(--nb-surface); color: var(--nb-text); box-shadow: var(--nb-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.nb-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.nb-back-to-top:hover { border-color: var(--nb-blue); color: var(--nb-blue-deep); }
.nb-telegram-shell { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 640px); gap: 26px; align-items: start; }
.nb-telegram-source-rail { position: sticky; top: 82px; min-width: 0; }
.nb-telegram-feed { min-width: 0; }
.nb-telegram-hero { padding-bottom: 20px; }
.nb-telegram-hero h1 { margin: 0 0 5px; color: var(--nb-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; }
.nb-telegram-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nb-gold); color: var(--nb-text); font-size: 13px; }
.nb-telegram-avatar { background: var(--nb-blue); }
.nb-telegram-source-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: 11px; }
.nb-telegram-rail-label { color: var(--nb-blue-deep); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.nb-telegram-single { min-width: 0; padding-bottom: 2rem; }
@media (max-width: 820px) {
  .nb-telegram-shell { grid-template-columns: 1fr; gap: 16px; }
  .nb-telegram-source-rail { position: static; order: 0; }
  .nb-telegram-feed { order: 1; }
  .nb-telegram-source-rail .nb-sidebar-sources { display: flex; gap: 6px; overflow-x: auto; }
  .nb-telegram-source-rail .nb-sidebar-sources li { flex: 0 0 auto; }
  .nb-telegram-source-rail .nb-source-item { border: 1px solid var(--nb-border); border-radius: 999px; }
}
@media (max-width: 560px) {
  .nb-default-logo { width: 24px; height: 24px; margin-right: 4px; }
  .nb-share-link { padding-right: 6px; padding-left: 6px; font-size: 9px; }
  .nb-back-to-top { right: 12px; bottom: 14px; width: 34px; height: 34px; }
}


/* Telegram social status feed and Live Update embeds. */
.nb-telegram-status-card { padding-top: 19px; }
.nb-telegram-status-copy { margin: 17px 0 10px; color: var(--nb-text); font-size: 17px; line-height: 1.62; }
.nb-telegram-status-copy p { margin: 0 0 8px; }
.nb-telegram-status-copy .nb-read-more { margin-left: 0; font-size: 12px; }
.nb-telegram-status-header { display: flex; align-items: center; gap: 12px; padding: 18px 0 22px; border-bottom: 1px solid var(--nb-border); }
.nb-telegram-status-mark { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--nb-gold); color: var(--nb-text); font-size: 22px; box-shadow: 0 8px 20px rgba(181, 138, 27, .22); }
.nb-telegram-status-header .nb-eyebrow { margin-bottom: 5px; }
.nb-telegram-entry-content { padding: 25px 0 5px; color: var(--nb-text); font-size: 18px; line-height: 1.72; }
.nb-telegram-entry-content p { margin: 0 0 1.15em; }
.nb-telegram-entry-content a { color: var(--nb-blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nb-telegram-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.nb-telegram-live-card { overflow: hidden; border: 1px solid var(--nb-border); border-radius: 9px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-live-card header { display: flex; align-items: center; gap: 8px; min-height: 45px; padding: 9px 11px; border-bottom: 1px solid var(--nb-border); }
.nb-telegram-live-card header strong { min-width: 0; overflow: hidden; color: var(--nb-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nb-telegram-live-card header a { margin-left: auto; color: var(--nb-blue-deep); font-size: 10px; font-weight: 700; white-space: nowrap; }
.nb-telegram-live-card iframe { display: block; width: 100%; height: 385px; border: 0; background: var(--nb-surface-soft); }
.nb-telegram-translated-heading { margin-top: 30px; }
.nb-telegram-tabs { margin-bottom: 18px; }
.nb-telegram-tabs a { font-size: 12px; }
@media (max-width: 820px) {
  .nb-telegram-live-grid { grid-template-columns: 1fr; }
  .nb-telegram-live-card iframe { height: 360px; }
}
@media (max-width: 560px) {
  .nb-telegram-status-copy { font-size: 16px; }
  .nb-telegram-entry-content { font-size: 17px; }
  .nb-telegram-live-card iframe { height: 340px; }
}


/* Single-channel Telegram Live Update feed. */
.nb-telegram-live-single { max-width: 760px; margin: 0 auto; }
.nb-telegram-selected-channel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--nb-border); border-radius: 12px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-selected-channel > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nb-telegram-selected-channel strong { color: var(--nb-text); overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.nb-telegram-selected-channel small { color: var(--nb-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nb-telegram-selected-channel > a { color: var(--nb-blue-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.nb-telegram-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 4px rgba(40,199,111,.12); }
.nb-telegram-channel-switcher { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.nb-telegram-channel-switcher a { padding: 7px 10px; border: 1px solid var(--nb-border); border-radius: 999px; color: var(--nb-muted); background: var(--nb-surface); font-size: 11px; font-weight: 700; }
.nb-telegram-channel-switcher a:hover, .nb-telegram-channel-switcher a.active { border-color: var(--nb-blue); color: var(--nb-blue-deep); background: var(--nb-blue-soft); }
.nb-telegram-live-message-list { display: grid; gap: 14px; }
.nb-telegram-live-message { overflow: hidden; border: 1px solid var(--nb-border); border-radius: 12px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-live-message > img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.nb-telegram-live-message-content { padding: 18px 19px 12px; color: var(--nb-text); font-size: 17px; line-height: 1.68; white-space: normal; overflow-wrap: anywhere; }
.nb-telegram-live-message-content br { display: block; content: ''; margin-top: 8px; }
.nb-telegram-live-message footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 19px 15px; color: var(--nb-muted); font-size: 11px; }
.nb-telegram-live-message footer a { color: var(--nb-blue-deep); font-weight: 700; }
.nb-telegram-live-empty { padding: 30px 22px; border: 1px dashed var(--nb-border); border-radius: 12px; color: var(--nb-muted); background: var(--nb-surface-soft); text-align: center; }
.nb-telegram-live-empty strong { display: block; margin-bottom: 7px; color: var(--nb-text); }
.nb-telegram-live-empty p { margin: 0 0 14px; }
.nb-telegram-live-empty a { color: var(--nb-blue-deep); font-weight: 700; }
.nb-telegram-live-sources .nb-source-item.is-selected { color: var(--nb-blue-deep); background: var(--nb-blue-soft); }
@media (max-width: 560px) {
  .nb-telegram-selected-channel { align-items: flex-start; flex-direction: column; }
  .nb-telegram-selected-channel > a { margin-left: 34px; }
  .nb-telegram-channel-switcher { max-height: 112px; overflow-y: auto; }
  .nb-telegram-live-message-content { padding: 16px; font-size: 16px; }
  .nb-telegram-live-message footer { padding: 10px 16px 14px; }
}


/* Telegram preview-style scroll widget. */
.nb-telegram-widget { width: min(100%, 620px); margin: 0 auto; overflow: hidden; border: 1px solid var(--nb-border); border-radius: 13px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-widget-header { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 0 15px; border-bottom: 1px solid var(--nb-border); background: var(--nb-surface); color: var(--nb-text); }
.nb-telegram-widget-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nb-telegram-widget-brand strong { overflow: hidden; font-size: 13px; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.nb-telegram-widget-icon { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: 16px; }
.nb-telegram-widget-sync { color: var(--nb-muted); font-size: 19px; line-height: 1; }
.nb-telegram-widget-header > a { margin-left: auto; max-width: 45%; overflow: hidden; color: var(--nb-blue-deep); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nb-telegram-widget-scroll { max-height: 650px; overflow-y: auto; padding: 13px 12px 18px; background: linear-gradient(180deg, #0d1015 0%, #151922 100%); scrollbar-color: #3d4654 #12161d; scrollbar-width: thin; }
.nb-telegram-widget-scroll:focus { outline: 2px solid var(--nb-gold); outline-offset: -2px; }
.nb-telegram-widget-post { margin: 0 0 13px; padding: 12px 13px 10px; border: 1px solid var(--nb-border); border-radius: 9px; background: var(--nb-surface); color: var(--nb-text); box-shadow: var(--nb-shadow); }
.nb-telegram-widget-post:last-child { margin-bottom: 0; }
.nb-telegram-widget-post-label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--nb-muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.nb-telegram-widget-post-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--nb-gold); }
.nb-telegram-widget-post-image { display: block; width: 100%; max-height: 300px; margin: -1px 0 11px; border-radius: 6px; object-fit: cover; }
.nb-telegram-widget-post-content { color: var(--nb-text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: normal; }
.nb-telegram-widget-post-content br { display: block; content: ''; margin-top: 5px; }
.nb-telegram-widget-post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--nb-border); color: var(--nb-muted); font-size: 10px; }
.nb-telegram-widget-post-footer a { color: var(--nb-blue-deep); font-weight: 700; white-space: nowrap; }
.nb-telegram-widget-post-footer time { white-space: nowrap; }
@media (max-width: 560px) {
  .nb-telegram-widget { width: 100%; border-radius: 10px; }
  .nb-telegram-widget-header { min-height: 53px; padding: 0 11px; }
  .nb-telegram-widget-scroll { max-height: 570px; padding: 10px 9px 14px; }
  .nb-telegram-widget-post { padding: 11px 11px 9px; }
  .nb-telegram-widget-post-content { font-size: 13px; line-height: 1.52; }
}


/* Light-first Telegram widget palette; theme variables automatically switch in dark mode. */
.nb-telegram-widget { border-color: var(--nb-border); background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-widget-header { border-bottom-color: var(--nb-border); background: var(--nb-surface); color: var(--nb-text); }
.nb-telegram-widget-icon { background: var(--nb-blue-soft); color: var(--nb-blue-deep); }
.nb-telegram-widget-sync { color: var(--nb-muted); }
.nb-telegram-widget-header > a { color: var(--nb-blue-deep); }
.nb-telegram-widget-scroll { height: 760px; max-height: calc(100vh - 170px); background: var(--nb-surface-soft); scrollbar-color: var(--nb-border-dark) var(--nb-surface-soft); }
.nb-telegram-widget-post { border-color: var(--nb-border); background: var(--nb-surface); color: var(--nb-text); box-shadow: var(--nb-shadow); }
.nb-telegram-widget-post-label { color: var(--nb-muted); }
.nb-telegram-widget-post-dot { background: var(--nb-gold); }
.nb-telegram-widget-post-content { color: var(--nb-text); }
.nb-telegram-widget-post-footer { border-top-color: var(--nb-border); color: var(--nb-muted); }
.nb-telegram-widget-post-footer a { color: var(--nb-blue-deep); }
@media (max-width: 560px) {
  .nb-telegram-widget-scroll { height: 650px; max-height: calc(100vh - 150px); }
}


.nb-telegram-widget-post-content p { margin: 0 0 10px; }
.nb-telegram-widget-post-content p:last-child { margin-bottom: 0; }
.nb-telegram-widget-post-content .nb-telegram-widget-post-url { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--nb-border); }
.nb-telegram-widget-post-content .nb-telegram-widget-post-url a { color: var(--nb-blue-deep); font-weight: 700; overflow-wrap: anywhere; }


/* Channel Global: separated social-status blocks. */
.nb-telegram-list { display: grid; gap: 15px; }
.nb-telegram-list .nb-telegram-card,
.nb-telegram-list .nb-telegram-card:last-child { margin: 0; border: 1px solid var(--nb-border); border-radius: 14px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-telegram-list .nb-telegram-card:hover { border-color: var(--nb-gold); box-shadow: 0 8px 24px rgba(181,138,27,.18); }
.nb-telegram-list .nb-telegram-card .nb-signal-header { padding-top: 0; }
.nb-telegram-list .nb-telegram-card .nb-telegram-status-copy { color: var(--nb-text); }
.nb-telegram-list .nb-telegram-card .nb-signal-actions { border-top-color: var(--nb-border); }


/* Shared topic navigation on every single-post page. */
.nb-topic-navigation { grid-column: 1 / -1; display: flex; min-width: 0; margin: 0 0 22px; border-bottom: 1px solid var(--nb-border); overflow-x: auto; scrollbar-width: thin; }
.nb-topic-navigation-desktop,
.nb-topic-navigation-mobile { display: flex; min-width: max-content; }
.nb-topic-navigation-mobile { display: none; }
.nb-topic-navigation a { position: relative; display: block; padding: 11px 16px 12px; color: var(--nb-muted); font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nb-topic-navigation a:hover { color: var(--nb-blue-deep); background: var(--nb-surface-soft); }
.nb-topic-navigation a.is-active { color: var(--nb-blue-deep); background: var(--nb-blue-soft); }
.nb-topic-navigation a.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--nb-blue); content: ''; }

/* Telegram pages keep the selected Live Update widget, without the channel-list block. */
.nb-telegram-shell { display: block; }
.nb-telegram-shell .nb-telegram-feed { width: min(100%, 860px); margin: 0 auto; }
.nb-telegram-shell .nb-telegram-widget { width: 100%; }

/* Detail Telegram tidak menampilkan navigasi topik, section, atau channel switcher legacy. */
body.single-nb_telegram .nb-topic-navigation,
body.single-nb_telegram .nb-section-navigation,
body.single-nb_telegram .nb-telegram-channel-switcher,
body.single-nb_telegram .nb-telegram-selected-channel,
body.single-nb_telegram .nb-telegram-channels,
body.single-nb_telegram .nb-telegram-channel-list { display: none !important; }

html[data-theme="dark"] .nb-topic-navigation a,
body[data-theme="dark"] .nb-topic-navigation a { color: #c7d5d7; }
html[data-theme="dark"] .nb-topic-navigation a.is-active,
body[data-theme="dark"] .nb-topic-navigation a.is-active { color: #bfe8ff; background: #1c4250; }
html[data-theme="dark"] .nb-topic-navigation a.is-active::after,
body[data-theme="dark"] .nb-topic-navigation a.is-active::after { background: #80d4ff; }

@media (max-width: 760px) {
  .nb-topic-navigation { margin-bottom: 16px; }
  .nb-topic-navigation-desktop { display: none; }
  .nb-topic-navigation-mobile { display: flex; }
  .nb-topic-navigation a { padding: 10px 13px 11px; font-size: 12px; }
}


/* Dedicated source widgets for Telegram and Video sidebars. */
.nb-special-sidebar-widgets { display: grid; gap: 14px; margin-top: 18px; }
.nb-special-sidebar-widget { padding: 16px 14px; border: 1px solid var(--nb-border); border-radius: 10px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-special-sidebar-widget .nb-sidebar-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--nb-border); color: var(--nb-text); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.nb-source-widget-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nb-source-widget-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 6px; border-radius: 7px; color: var(--nb-text); font-size: 12px; text-decoration: none; }
.nb-source-widget-item:hover { background: var(--nb-surface-soft); color: var(--nb-blue-deep); }
.nb-source-widget-item > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-source-widget-item small { margin-left: auto; color: var(--nb-muted); font-size: 10px; }
.nb-source-widget-icon { display: inline-grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: 11px; }
@media (max-width: 760px) {
  .nb-special-sidebar-widgets { margin-top: 14px; }
  .nb-special-sidebar-widget { padding: 14px 12px; }
}


/* Dedicated source-sidebar layout. */
.nb-telegram-shell { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 1fr); gap: 26px; align-items: start; }
.nb-telegram-shell .nb-telegram-feed { width: auto; margin: 0; }
.nb-telegram-shell > .nb-topic-navigation { grid-column: 1 / -1; }
.nb-telegram-shell > .nb-category-rail { grid-column: 1; grid-row: 2; }
.nb-telegram-shell > .nb-telegram-single { grid-column: 2; grid-row: 2; }
.nb-telegram-shell > .nb-reference-feed { grid-column: 2; grid-row: 2; }
.nb-video-shell > .nb-topic-navigation { grid-column: 1 / -1; }
.nb-video-shell > .nb-category-rail { grid-column: 1; }
.nb-video-shell > .nb-video-single { grid-column: 2; }
@media (max-width: 760px) {
  .nb-telegram-shell,
  .nb-video-shell { grid-template-columns: 1fr; gap: 16px; }
  .nb-telegram-shell > .nb-topic-navigation,
  .nb-telegram-shell > .nb-category-rail,
  .nb-telegram-shell > .nb-reference-feed,
  .nb-telegram-shell > .nb-telegram-single,
  .nb-video-shell > .nb-topic-navigation,
  .nb-video-shell > .nb-category-rail,
  .nb-video-shell > .nb-video-single { grid-column: 1; grid-row: auto; }
}


/* Primary section navigation on Telegram and Video archives. */
.nb-section-navigation { grid-column: 1 / -1; display: flex; min-width: 0; margin: 0 0 22px; border-bottom: 1px solid var(--nb-border); overflow-x: auto; scrollbar-width: thin; }
.nb-section-navigation a { position: relative; flex: 0 0 auto; padding: 11px 18px 12px; color: var(--nb-muted); font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nb-section-navigation a.is-active { color: var(--nb-blue-deep); background: var(--nb-blue-soft); }
.nb-section-navigation a.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--nb-blue); content: ''; }
.nb-section-navigation a:hover { color: var(--nb-blue-deep); background: var(--nb-surface-soft); }
html[data-theme="dark"] .nb-section-navigation a,
body[data-theme="dark"] .nb-section-navigation a { color: #c7d5d7; }
html[data-theme="dark"] .nb-section-navigation a.is-active,
body[data-theme="dark"] .nb-section-navigation a.is-active { color: #bfe8ff; background: #1c4250; }
html[data-theme="dark"] .nb-section-navigation a.is-active::after,
body[data-theme="dark"] .nb-section-navigation a.is-active::after { background: #80d4ff; }
@media (max-width: 760px) {
  .nb-section-navigation { margin-bottom: 16px; }
  .nb-section-navigation a { padding: 10px 14px 11px; font-size: 12px; }
  .nb-telegram-shell > .nb-section-navigation,
  .nb-video-shell > .nb-section-navigation { grid-column: 1; }
}


/* Explicit archive grid placement keeps Video sources beside the feed on desktop. */
@media (min-width: 821px) {
  .nb-video-shell { grid-template-columns: var(--nb-rail) minmax(0, 640px); }
  .nb-video-shell > .nb-section-navigation { grid-column: 1 / -1; grid-row: 1; }
  .nb-video-shell > .nb-category-rail { grid-column: 1; grid-row: 2; align-self: start; }
  .nb-video-shell > .nb-video-feed { grid-column: 2; grid-row: 2; min-width: 0; }
}
@media (max-width: 820px) {
  .nb-video-shell > .nb-section-navigation { grid-column: 1; grid-row: 1; }
  .nb-video-shell > .nb-category-rail { grid-column: 1; grid-row: auto; order: 2; }
  .nb-video-shell > .nb-video-feed { grid-column: 1; grid-row: auto; order: 1; }
  .nb-video-shell > .nb-video-single { grid-column: 1; grid-row: auto; order: 1; }
  .nb-telegram-shell > .nb-category-rail { grid-column: 1; grid-row: auto; order: 2; }
  .nb-telegram-shell > .nb-reference-feed,
  .nb-telegram-shell > .nb-telegram-single { grid-column: 1; grid-row: auto; order: 1; }
}


/* User-managed primary header navigation. */
.nb-primary-navigation { display: flex; align-items: center; min-width: 0; }
.nb-primary-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nb-primary-menu > li { position: relative; }
.nb-primary-menu a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--nb-muted); font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.nb-primary-menu a:hover,
.nb-primary-menu .current-menu-item > a,
.nb-primary-menu .current-menu-ancestor > a { background: var(--nb-surface-soft); color: var(--nb-blue-deep); }
.nb-primary-menu .sub-menu { position: absolute; top: calc(100% + 7px); left: 0; z-index: 60; display: none; min-width: 190px; margin: 0; padding: 7px; border: 1px solid var(--nb-border); border-radius: 9px; background: var(--nb-surface); box-shadow: var(--nb-shadow); list-style: none; }
.nb-primary-menu li:hover > .sub-menu,
.nb-primary-menu li:focus-within > .sub-menu { display: block; }
.nb-primary-menu .sub-menu a { padding: 9px 10px; }
.nb-menu-toggle { display: none; }

html[data-theme="dark"] .nb-primary-menu a,
body[data-theme="dark"] .nb-primary-menu a { color: #c7d5d7; }
html[data-theme="dark"] .nb-primary-menu a:hover,
html[data-theme="dark"] .nb-primary-menu .current-menu-item > a,
html[data-theme="dark"] .nb-primary-menu .current-menu-ancestor > a,
body[data-theme="dark"] .nb-primary-menu a:hover,
body[data-theme="dark"] .nb-primary-menu .current-menu-item > a,
body[data-theme="dark"] .nb-primary-menu .current-menu-ancestor > a { background: #24353a; color: #bfe8ff; }

@media (max-width: 820px) {
  .nb-header-inner { position: relative; }
  .nb-header-inner > .nb-menu-toggle { position: relative; z-index: 81; display: inline-flex; flex: 0 0 32px; width: 32px; height: 32px; padding: 5px; }
  .nb-primary-navigation { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; display: none; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px; border: 1px solid var(--nb-border); border-radius: 10px; background: var(--nb-surface); box-shadow: 0 18px 45px rgba(0, 0, 0, .18); }
  .nb-primary-navigation.is-open { display: block; visibility: visible; pointer-events: auto; }
  .nb-primary-menu { display: grid; gap: 2px; }
  .nb-primary-menu > li { width: 100%; }
  .nb-primary-menu a { padding: 11px 12px; font-size: 13px; }
  .nb-primary-menu .sub-menu { position: static; display: block; margin: 0 0 3px 10px; padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--nb-border); border-radius: 0; box-shadow: none; }
  .nb-primary-menu .sub-menu a { padding: 8px 10px; font-size: 12px; }
  .nb-utility-nav { margin-left: auto; }
  .nb-mobile-category-menu { display: none !important; }
}


/* Social Share community feed. */
.nb-social-share-shell { display: grid; grid-template-columns: minmax(0, 820px); justify-content: center; min-width: 0; }
.nb-social-share-feed { min-width: 0; }
.nb-social-share-hero { padding: 0 0 18px; }
.nb-social-share-hero h1 { margin: 0 0 6px; color: var(--nb-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; line-height: 1.05; }
.nb-social-share-hero > p:last-child { margin: 0; color: var(--nb-muted); }
.nb-social-share-submit-panel { margin: 0 0 18px; padding: 18px; border: 1px solid var(--nb-border); border-radius: 12px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-social-share-submit-panel h2 { margin: 0 0 12px; font-size: 1.05rem; }
.nb-social-share-submit-panel form input,
.nb-social-share-submit-panel form textarea,
.nb-social-share-submit-panel form select { max-width: 100%; }
.nb-social-share-list { display: grid; gap: 14px; min-width: 0; }
.nb-social-share-card { min-width: 0; padding: 20px 22px 14px; border: 1px solid var(--nb-border); border-radius: 12px; background: var(--nb-surface); box-shadow: var(--nb-shadow); }
.nb-social-share-card__header { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nb-social-share-card__avatar { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--nb-blue-soft); }
.nb-social-share-card__avatar-image { width: 44px; height: 44px; object-fit: cover; }
.nb-social-share-card__author { min-width: 0; }
.nb-social-share-card__author-name { color: var(--nb-text); font-weight: 800; }
.nb-social-share-card__author-name:hover { color: var(--nb-blue-deep); }
.nb-social-share-card__meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--nb-muted); font-size: 11px; }
.nb-social-share-card__content { margin-top: 14px; overflow-wrap: anywhere; }
.nb-social-share-card__title { margin: 0 0 9px; font-size: 1.35rem; line-height: 1.18; }
.nb-social-share-card__title a { color: var(--nb-text); }
.nb-social-share-card__content > :first-child { margin-top: 0; }
.nb-social-share-card__content > :last-child { margin-bottom: 0; }
.nb-social-share-card__media { display: block; margin-top: 14px; overflow: hidden; border-radius: 9px; }
.nb-social-share-card__media img { width: 100%; height: auto; }
.nb-social-share-card__source { display: grid; gap: 4px; margin-top: 15px; padding: 12px 14px; border: 1px solid var(--nb-border); border-radius: 9px; background: var(--nb-surface-soft); overflow-wrap: anywhere; }
.nb-social-share-card__source-domain { color: var(--nb-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nb-social-share-card__source strong { color: var(--nb-text); }
.nb-social-share-card__source p { margin: 0; color: var(--nb-muted); font-size: 12px; }
.nb-social-share-card__source > a { color: var(--nb-blue-deep); font-size: 12px; font-weight: 700; }
.nb-social-share-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--nb-border); color: var(--nb-muted); font-size: 11px; }
.nb-social-share-card__actions > a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--nb-border); border-radius: 999px; color: var(--nb-muted); }
.nb-social-share-card__actions > a:hover { border-color: var(--nb-blue); background: var(--nb-blue-soft); color: var(--nb-blue-deep); }
.nb-social-share-card__actions .nb-share-buttons { margin-left: auto; }
.nb-social-share-breadcrumb { display: flex; gap: 7px; margin: 0 0 14px; color: var(--nb-muted); font-size: 12px; }
.nb-social-share-breadcrumb a { color: var(--nb-blue-deep); font-weight: 700; }
.nb-social-share-empty { padding: 28px 22px; border: 1px solid var(--nb-border); border-radius: 12px; background: var(--nb-surface); text-align: center; }
.nb-social-share-empty h2 { margin: 0 0 6px; font-size: 1.2rem; }
.nb-social-share-empty p { margin: 0; color: var(--nb-muted); }
@media (max-width: 820px) {
  .nb-social-share-shell { grid-template-columns: minmax(0, 1fr); }
  .nb-social-share-card { padding: 17px 14px 13px; }
  .nb-social-share-card__actions .nb-share-buttons { margin-left: 0; width: 100%; }
}


/* One-time PWA install prompt. */
.nb-install-popup[hidden] { display: none; }
.nb-install-popup { position: fixed; inset: 0; z-index: 10000; }
.nb-install-popup__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 51, .58); }
.nb-install-popup__panel { position: absolute; left: 50%; top: 50%; width: min(360px, calc(100% - 32px)); padding: 24px 22px 20px; transform: translate(-50%, -50%); border: 1px solid var(--nb-border); border-radius: 16px; background: var(--nb-surface); box-shadow: 0 22px 60px rgba(11, 31, 51, .28); color: var(--nb-text); text-align: center; }
.nb-install-popup__close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--nb-muted); font-size: 25px; line-height: 1; cursor: pointer; }
.nb-install-popup__close:hover, .nb-install-popup__close:focus-visible { background: var(--nb-surface-soft); color: var(--nb-text); }
.nb-install-popup__title { margin: 3px 24px 7px; color: var(--nb-text); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 700; }
.nb-install-popup__description { margin: 0 0 18px; color: var(--nb-muted); font-size: 14px; }
.nb-install-popup__install { width: 100%; min-height: 42px; padding: 9px 16px; border: 1px solid var(--nb-gold); border-radius: 999px; background: var(--nb-gold); color: var(--nb-text); font-size: 13px; font-weight: 800; cursor: pointer; }
.nb-install-popup__install:hover, .nb-install-popup__install:focus-visible { border-color: var(--nb-blue-deep); background: var(--nb-blue-deep); color: #fff; }
.nb-install-popup button:focus-visible, .nb-install-popup__backdrop:focus-visible { outline: 3px solid var(--nb-gold); outline-offset: 2px; }
.nb-install-popup-open { overflow: hidden; }
@media (max-width: 560px) {
  .nb-install-popup__panel { width: min(340px, calc(100% - 24px)); padding: 22px 17px 17px; }
  .nb-install-popup__title { font-size: 21px; }
}


/* Split mobile navigation: content sources left, WordPress menu right. */
.nb-primary-menu-toggle,
.nb-source-navigation { display: none; }
.nb-primary-menu-toggle { align-items: center; justify-content: center; width: 32px; height: 32px; padding: 5px; border: 1px solid var(--nb-border); border-radius: 7px; background: var(--nb-surface); color: var(--nb-text); cursor: pointer; }
.nb-primary-menu-toggle svg { width: 20px; height: 20px; }
.nb-source-navigation { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; width: min(320px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 12px; border: 1px solid var(--nb-border); border-radius: 10px; background: var(--nb-surface); box-shadow: 0 18px 45px rgba(0, 0, 0, .18); }
.nb-source-navigation.is-open { display: block; visibility: visible; pointer-events: auto; }
.nb-source-navigation__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 0 2px 8px; border-bottom: 1px solid var(--nb-border); color: var(--nb-text); font-size: 12px; font-weight: 800; }
.nb-source-navigation__heading a { color: var(--nb-blue-deep); font-size: 10px; white-space: nowrap; }
.nb-source-navigation__list { display: grid; gap: 3px; }
.nb-source-navigation__list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 34px; padding: 6px 7px; border-radius: 7px; color: var(--nb-text); font-size: 12px; }
.nb-source-navigation__list a:hover, .nb-source-navigation__list a:focus-visible { background: var(--nb-surface-soft); color: var(--nb-blue-deep); }
.nb-source-navigation__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--nb-blue-soft); color: var(--nb-blue-deep); font-size: 10px; }
.nb-source-navigation__list small { color: var(--nb-muted); font-size: 10px; }
@media (max-width: 820px) {
  .nb-header-inner { position: relative; }
  .nb-header-inner > .nb-menu-toggle { order: 1; }
  .nb-header-inner > .nb-logo-mode-switcher,
  .nb-header-inner > .nb-brand { order: 2; min-width: 0; }
  .nb-header-inner > .nb-primary-navigation { order: 3; }
  .nb-header-inner > .nb-primary-menu-toggle { order: 4; display: inline-flex; flex: 0 0 32px; margin-left: auto; }
  .nb-header-inner > .nb-utility-nav { order: 5; }
  .nb-header-inner > .nb-header-actions { order: 6; }
  .nb-primary-navigation { left: auto; right: 0; }
  .nb-primary-menu-toggle:focus-visible,
  .nb-menu-toggle:focus-visible { outline: 3px solid var(--nb-gold); outline-offset: 2px; }
  .nb-header-inner > .nb-source-navigation { display: none; }
  .nb-header-inner > .nb-source-navigation.is-open { display: block; }
  .nb-header-inner:has(.nb-source-navigation.is-open),
  .nb-header-inner:has(.nb-primary-navigation.is-open) { z-index: 90; }
}
@media (max-width: 560px) {
  .nb-primary-menu-toggle { width: 30px; height: 30px; padding: 4px; }
  .nb-source-navigation { width: min(300px, calc(100vw - 20px)); }
}


/* Final mobile navigation split override. */
@media (max-width: 820px) {
  .nb-header-inner { display: flex; align-items: center; gap: .45rem; }
  .nb-header-inner > .nb-menu-toggle { position: relative; left: auto; right: auto; margin: 0; }
  .nb-header-inner > .nb-logo-mode-switcher,
  .nb-header-inner > .nb-brand { flex: 1 1 auto; }
  .nb-header-inner > .nb-primary-menu-toggle { position: relative; top: auto; right: auto; margin-left: 0; }
  .nb-header-inner > .nb-utility-nav,
  .nb-header-inner > .nb-header-actions { margin-left: 0; }
  .nb-source-navigation { left: 0; right: auto; }
  .nb-primary-navigation { left: auto; right: 0; }
}
@media (max-width: 560px) {
  .nb-header-inner { gap: .3rem; }
  .nb-header-inner > .nb-menu-toggle,
  .nb-header-inner > .nb-primary-menu-toggle { flex: 0 0 30px; width: 30px; height: 30px; }
  .nb-header-inner > .nb-logo-mode-switcher,
  .nb-header-inner > .nb-brand { max-width: calc(100vw - 190px); }
  .nb-header-inner > .nb-utility-nav { flex: 0 0 28px; }
  .nb-header-inner > .nb-header-actions { flex: 0 0 auto; }
}


/* Mobile source menu visual cleanup. */
@media (max-width: 820px) {
  .nb-source-navigation,
  .nb-primary-navigation { position: fixed; top: 64px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-x: hidden; overflow-y: auto; }
  .nb-source-navigation { left: 12px; right: auto; width: min(330px, calc(100vw - 24px)); margin: 0; padding: 10px; }
  .nb-primary-navigation { left: auto; right: 12px; width: min(300px, calc(100vw - 24px)); margin: 0; }
  .nb-source-navigation__heading { position: sticky; top: -10px; z-index: 1; padding-top: 4px; background: var(--nb-surface); }
  .nb-source-navigation__list { gap: 2px; }
  .nb-source-navigation__list a { grid-template-columns: 24px minmax(0, 1fr) auto; min-width: 0; min-height: 38px; padding: 7px 8px; line-height: 1.25; overflow-wrap: anywhere; }
  .nb-source-navigation__list a > span:nth-child(2) { min-width: 0; }
  .nb-source-navigation__list small { align-self: center; }
}
@media (max-width: 560px) {
  .nb-source-navigation,
  .nb-primary-navigation { top: 60px; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); }
  .nb-source-navigation { left: 10px; width: min(310px, calc(100vw - 20px)); }
  .nb-primary-navigation { right: 10px; width: min(290px, calc(100vw - 20px)); }
}


/* Desktop section navigation cleanup and source-name wrapping. */
@media (min-width: 821px) {
  .nb-section-navigation { display: none; }
}
.nb-source-item,
.nb-source-widget-item { align-items: flex-start; min-width: 0; }
.nb-source-item > span:last-child,
.nb-source-widget-item > span:nth-child(2) { min-width: 0; flex: 1 1 auto; overflow: visible; overflow-wrap: anywhere; white-space: normal; word-break: normal; line-height: 1.35; }
.nb-source-item .nb-sidebar-svg,
.nb-source-item .nb-source-logo,
.nb-source-widget-item .nb-source-widget-icon { flex: 0 0 auto; }
@media (min-width: 821px) {
  .nb-category-rail,
  .nb-threads-rail,
  .nb-video-source-rail,
  .nb-telegram-source-rail { min-width: 0; overflow: hidden; }
}


/* Optional sidebars on non-home pages. Both sides are shown by default and can be hidden in Customizer > Page Layout. */
.nb-page-layout { display: grid; grid-template-columns: var(--nb-rail) minmax(0, 1fr) var(--nb-trending); gap: 26px; align-items: start; }
.nb-page-layout > .nb-category-rail,
.nb-page-layout > .nb-threads-rail { grid-column: 1; grid-row: 1; position: sticky; top: 82px; }
.nb-page-layout > .nb-single { grid-column: 2; grid-row: 1; min-width: 0; }
.nb-page-layout > .nb-trending-panel { grid-column: 3; grid-row: 1; }
.nb-page-layout-with-topic > .nb-topic-navigation { grid-column: 1 / -1; grid-row: 1; }
.nb-page-layout-with-topic > .nb-category-rail,
.nb-page-layout-with-topic > .nb-threads-rail { grid-row: 2; }
.nb-page-layout-with-topic > .nb-single,
.nb-page-layout-with-topic > .nb-trending-panel { grid-row: 2; }
.nb-page-layout-with-topic > .nb-single { grid-column: 2; }
.nb-page-layout-with-topic > .nb-trending-panel { grid-column: 3; }

@media (min-width: 821px) {
  .nb-feed-layout > .nb-threads-rail,
  .nb-feed-layout > .nb-category-rail { grid-column: 1; grid-row: 1; }
  .nb-feed-layout > .nb-trending-panel { grid-column: 3; grid-row: 1; }

  .nb-video-shell,
  .nb-telegram-shell { grid-template-columns: var(--nb-rail) minmax(0, 1fr) var(--nb-trending); }
  .nb-video-shell > .nb-category-rail,
  .nb-video-shell > .nb-video-source-rail,
  .nb-telegram-shell > .nb-category-rail,
  .nb-telegram-shell > .nb-telegram-source-rail { grid-column: 1; grid-row: 1; }
  .nb-video-shell > .nb-video-feed,
  .nb-video-shell > .nb-video-single,
  .nb-telegram-shell > .nb-telegram-feed,
  .nb-telegram-shell > .nb-telegram-single,
  .nb-telegram-shell > .nb-reference-feed { grid-column: 2; grid-row: 1; min-width: 0; }
  .nb-video-shell > .nb-trending-panel,
  .nb-telegram-shell > .nb-trending-panel { grid-column: 3; grid-row: 1; }
  .nb-video-shell > .nb-topic-navigation,
  .nb-telegram-shell > .nb-topic-navigation { grid-column: 1 / -1; grid-row: 1; }
  .nb-video-single-shell > .nb-category-rail,
  .nb-video-single-shell > .nb-video-source-rail,
  .nb-telegram-single-shell > .nb-category-rail,
  .nb-telegram-single-shell > .nb-telegram-source-rail { grid-row: 2; }
  .nb-video-single-shell > .nb-video-single,
  .nb-telegram-single-shell > .nb-telegram-single,
  .nb-video-single-shell > .nb-trending-panel,
  .nb-telegram-single-shell > .nb-trending-panel { grid-row: 2; }
  .nb-video-single-shell > .nb-video-single,
  .nb-telegram-single-shell > .nb-telegram-single { grid-column: 2; }
  .nb-video-single-shell > .nb-trending-panel,
  .nb-telegram-single-shell > .nb-trending-panel { grid-column: 3; }

  .nb-nonhome-hide-left-sidebar .nb-feed-layout,
  .nb-nonhome-hide-left-sidebar .nb-page-layout,
  .nb-nonhome-hide-left-sidebar .nb-video-shell,
  .nb-nonhome-hide-left-sidebar .nb-telegram-shell { grid-template-columns: minmax(0, 1fr) var(--nb-trending); }
  .nb-nonhome-hide-left-sidebar .nb-feed-layout > .nb-feed,
  .nb-nonhome-hide-left-sidebar .nb-page-layout > .nb-single,
  .nb-nonhome-hide-left-sidebar .nb-video-shell > .nb-video-feed,
  .nb-nonhome-hide-left-sidebar .nb-video-shell > .nb-video-single,
  .nb-nonhome-hide-left-sidebar .nb-telegram-shell > .nb-telegram-feed,
  .nb-nonhome-hide-left-sidebar .nb-telegram-shell > .nb-telegram-single,
  .nb-nonhome-hide-left-sidebar .nb-telegram-shell > .nb-reference-feed { grid-column: 1; }
  .nb-nonhome-hide-left-sidebar .nb-feed-layout > .nb-trending-panel,
  .nb-nonhome-hide-left-sidebar .nb-page-layout > .nb-trending-panel,
  .nb-nonhome-hide-left-sidebar .nb-video-shell > .nb-trending-panel,
  .nb-nonhome-hide-left-sidebar .nb-telegram-shell > .nb-trending-panel { grid-column: 2; }

  .nb-nonhome-hide-right-sidebar .nb-feed-layout,
  .nb-nonhome-hide-right-sidebar .nb-page-layout,
  .nb-nonhome-hide-right-sidebar .nb-video-shell,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell { grid-template-columns: var(--nb-rail) minmax(0, 1fr); }
  .nb-nonhome-hide-right-sidebar .nb-feed-layout > .nb-feed,
  .nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-single,
  .nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-video-feed,
  .nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-video-single,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-telegram-feed,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-telegram-single,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-reference-feed { grid-column: 2; }
  .nb-nonhome-hide-right-sidebar .nb-feed-layout > .nb-threads-rail,
  .nb-nonhome-hide-right-sidebar .nb-feed-layout > .nb-category-rail,
  .nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-category-rail,
  .nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-threads-rail,
  .nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-category-rail,
  .nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-video-source-rail,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-category-rail,
  .nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-telegram-source-rail { grid-column: 1; }

  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-feed-layout,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-page-layout,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-video-shell,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-telegram-shell { grid-template-columns: minmax(0, 1fr); }
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-feed-layout > .nb-feed,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-single,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-video-feed,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-video-shell > .nb-video-single,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-telegram-feed,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-telegram-single,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-telegram-shell > .nb-reference-feed { grid-column: 1; }
}

@media (max-width: 820px) {
  .nb-page-layout { grid-template-columns: 1fr; gap: 16px; }
  .nb-page-layout > .nb-topic-navigation,
  .nb-page-layout > .nb-category-rail,
  .nb-page-layout > .nb-threads-rail,
  .nb-page-layout > .nb-single,
  .nb-page-layout > .nb-trending-panel { grid-column: 1; grid-row: auto; }
  .nb-page-layout > .nb-category-rail,
  .nb-page-layout > .nb-threads-rail { order: 2; position: static; }
  .nb-page-layout > .nb-single { order: 1; }
  .nb-page-layout > .nb-trending-panel { order: 3; }
  .nb-video-shell,
  .nb-telegram-shell { grid-template-columns: 1fr; gap: 16px; }
  .nb-video-shell > .nb-topic-navigation,
  .nb-video-shell > .nb-category-rail,
  .nb-video-shell > .nb-video-source-rail,
  .nb-video-shell > .nb-video-feed,
  .nb-video-shell > .nb-video-single,
  .nb-video-shell > .nb-trending-panel,
  .nb-telegram-shell > .nb-topic-navigation,
  .nb-telegram-shell > .nb-category-rail,
  .nb-telegram-shell > .nb-telegram-source-rail,
  .nb-telegram-shell > .nb-telegram-feed,
  .nb-telegram-shell > .nb-telegram-single,
  .nb-telegram-shell > .nb-reference-feed,
  .nb-telegram-shell > .nb-trending-panel { grid-column: 1; grid-row: auto; }
  .nb-video-shell > .nb-video-feed,
  .nb-video-shell > .nb-video-single,
  .nb-telegram-shell > .nb-telegram-feed,
  .nb-telegram-shell > .nb-telegram-single,
  .nb-telegram-shell > .nb-reference-feed { order: 1; }
  .nb-video-shell > .nb-category-rail,
  .nb-video-shell > .nb-video-source-rail,
  .nb-telegram-shell > .nb-category-rail,
  .nb-telegram-shell > .nb-telegram-source-rail { order: 2; position: static; }
  .nb-video-shell > .nb-trending-panel,
  .nb-telegram-shell > .nb-trending-panel { order: 3; }
}

/* Allow long source labels to wrap to a maximum of two lines without moving the feed column. */
.nb-source-item { min-width: 0; align-items: flex-start; }
.nb-source-item > span { min-width: 0; flex: 1 1 auto; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nb-source-widget-item > span:nth-child(2) { min-width: 0; flex: 1 1 auto; overflow: hidden; overflow-wrap: anywhere; white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nb-category-rail,
.nb-threads-rail,
.nb-video-source-rail,
.nb-telegram-source-rail { min-width: 0; }


/* Social Share follows the same non-home sidebar controls. */
@media (min-width: 821px) {
  .nb-social-share-shell { grid-template-columns: var(--nb-rail) minmax(0, 1fr) var(--nb-trending); }
  .nb-social-share-shell > .nb-social-share-feed { grid-column: 2; grid-row: 1; min-width: 0; }
  .nb-social-share-shell > .nb-social-share-card { grid-column: 2; grid-row: 2; min-width: 0; }
  .nb-social-share-single-shell > .nb-social-share-breadcrumb { grid-column: 1 / -1; grid-row: 1; }
  .nb-social-share-single-shell > .nb-social-share-card,
  .nb-social-share-single-shell > .nb-comments,
  .nb-social-share-single-shell > .nav-links { grid-column: 2; }
  .nb-social-share-single-shell > .nb-social-share-card { grid-row: 2; }
  .nb-social-share-single-shell > .nb-comments,
  .nb-social-share-single-shell > .nav-links { grid-row: auto; }
  .nb-nonhome-hide-left-sidebar .nb-social-share-shell { grid-template-columns: minmax(0, 1fr) var(--nb-trending); }
  .nb-nonhome-hide-left-sidebar .nb-social-share-shell > .nb-social-share-feed,
  .nb-nonhome-hide-left-sidebar .nb-social-share-single-shell > .nb-social-share-card,
  .nb-nonhome-hide-left-sidebar .nb-social-share-single-shell > .nb-comments,
  .nb-nonhome-hide-left-sidebar .nb-social-share-single-shell > .nav-links { grid-column: 1; }
  .nb-nonhome-hide-left-sidebar .nb-social-share-shell > .nb-trending-panel { grid-column: 2; }
  .nb-nonhome-hide-right-sidebar .nb-social-share-shell { grid-template-columns: var(--nb-rail) minmax(0, 1fr); }
  .nb-nonhome-hide-right-sidebar .nb-social-share-shell > .nb-social-share-feed,
  .nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nb-social-share-card,
  .nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nb-comments,
  .nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nav-links { grid-column: 2; }
  .nb-nonhome-hide-right-sidebar .nb-social-share-shell > .nb-category-rail,
  .nb-nonhome-hide-right-sidebar .nb-social-share-shell > .nb-threads-rail { grid-column: 1; }
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-social-share-shell { grid-template-columns: minmax(0, 1fr); }
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-social-share-shell > .nb-social-share-feed,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nb-social-share-card,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nb-comments,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-social-share-single-shell > .nav-links { grid-column: 1; }
}


@media (min-width: 821px) {
  .nb-page-layout > .nb-comments,
  .nb-page-layout > .nav-links { grid-column: 2; grid-row: auto; min-width: 0; }
  .nb-nonhome-hide-left-sidebar .nb-page-layout > .nb-comments,
  .nb-nonhome-hide-left-sidebar .nb-page-layout > .nav-links { grid-column: 1; }
  .nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-comments,
  .nb-nonhome-hide-right-sidebar .nb-page-layout > .nav-links { grid-column: 2; }
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-page-layout > .comments,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-page-layout > .nb-comments,
  .nb-nonhome-hide-left-sidebar.nb-nonhome-hide-right-sidebar .nb-page-layout > .nav-links { grid-column: 1; }
}

@media (max-width: 820px) {
  .nb-social-share-shell { grid-template-columns: 1fr; }
  .nb-social-share-shell > .nb-category-rail,
  .nb-social-share-shell > .nb-threads-rail,
  .nb-social-share-shell > .nb-social-share-feed,
  .nb-social-share-shell > .nb-social-share-card,
  .nb-social-share-shell > .nb-comments,
  .nb-social-share-shell > .nav-links,
  .nb-social-share-shell > .nb-trending-panel { grid-column: 1; grid-row: auto; }
  .nb-social-share-shell > .nb-social-share-feed,
  .nb-social-share-single-shell > .nb-social-share-card { order: 1; }
  .nb-social-share-shell > .nb-category-rail,
  .nb-social-share-shell > .nb-threads-rail { order: 2; }
  .nb-social-share-shell > .nb-trending-panel { order: 3; }
}


/* Official social media links in the footer. */
.nb-footer-inner { align-items: center; }
.nb-footer-meta { min-width: 0; }
.nb-footer-social { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.nb-footer-social-label { color: var(--nb-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nb-footer-social-links { display: flex; align-items: center; gap: 7px; }
.nb-footer-social-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--nb-border); border-radius: 50%; color: var(--nb-muted); background: var(--nb-surface); transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.nb-footer-social-link:hover,
.nb-footer-social-link:focus-visible { border-color: var(--nb-gold); color: var(--nb-blue-deep); background: var(--nb-surface-soft); transform: translateY(-1px); }
.nb-footer-social-link svg { display: block; width: 16px; height: 16px; }
.nb-footer-social-link:focus-visible { outline: 2px solid var(--nb-gold); outline-offset: 3px; }
@media (max-width: 820px) {
  .nb-footer-inner { align-items: flex-start; }
  .nb-footer-social { justify-content: flex-start; margin-top: 14px; }
}
@media (max-width: 420px) {
  .nb-footer-social { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nb-footer-social-links { gap: 8px; }
}


/* Final mobile detail-order and Telegram-sidebar repair. */
@media (max-width: 820px) {
  .nb-page-layout > .nb-topic-navigation { order: 0; grid-column: 1; }
  .nb-page-layout > .nb-single { order: 1; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-page-layout > .nb-comments { order: 2; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-page-layout > .nav-links { order: 3; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-page-layout > .nb-category-rail,
  .nb-page-layout > .nb-threads-rail { order: 4; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-page-layout > .nb-trending-panel { order: 5; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }

  .nb-social-share-single-shell > .nb-social-share-breadcrumb { order: 0; grid-column: 1; }
  .nb-social-share-single-shell > .nb-social-share-card { order: 1; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-social-share-single-shell > .nb-comments { order: 2; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-social-share-single-shell > .nav-links { order: 3; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-social-share-single-shell > .nb-category-rail,
  .nb-social-share-single-shell > .nb-threads-rail { order: 4; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }
  .nb-social-share-single-shell > .nb-trending-panel { order: 5; grid-column: 1; width: 100%; max-width: 100%; min-width: 0; }

  .nb-telegram-single-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
  }
  .nb-telegram-single-shell > .nb-telegram-single {
    order: 1;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail,
  .nb-telegram-single-shell > .nb-category-rail {
    order: 2;
    grid-column: 1;
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-sidebar-sources {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-sidebar-sources li,
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-source-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-source-item {
    border-radius: 7px;
    white-space: normal;
  }
  .nb-telegram-single-shell > .nb-trending-panel {
    order: 3;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
}


/* Final mobile post-navigation and Telegram detail repair v2. */
@media (max-width: 820px) {
  /* WordPress renders post navigation as a direct nav wrapper, not as a direct .nav-links child. */
  .nb-page-layout > nav.navigation,
  .nb-page-layout > nav.post-navigation,
  .nb-social-share-shell > nav.navigation,
  .nb-social-share-shell > nav.post-navigation {
    order: 3;
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .nb-page-layout > .nb-category-rail,
  .nb-page-layout > .nb-threads-rail,
  .nb-social-share-shell > .nb-category-rail,
  .nb-social-share-shell > .nb-threads-rail { order: 4; }
  .nb-page-layout > .nb-trending-panel,
  .nb-social-share-shell > .nb-trending-panel { order: 5; }

  /* Detail Telegram has one full-width content column followed by full-width side panels. */
  .nb-telegram-single-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row;
    align-items: stretch;
  }
  .nb-telegram-single-shell > .nb-telegram-single {
    display: block;
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail,
  .nb-telegram-single-shell > .nb-category-rail {
    display: block !important;
    order: 2 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    position: static !important;
    overflow: visible !important;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-sidebar-sources {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
    margin-left: 0;
    overflow: visible !important;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-sidebar-sources li {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-source-item {
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    border-radius: 7px;
    white-space: normal;
  }
  .nb-telegram-single-shell > .nb-telegram-source-rail .nb-source-item > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }
  .nb-telegram-single-shell > .nb-trending-panel {
    display: block;
    order: 3 !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}


/* Final Telegram detail right-sidebar repair v3: normalize nested widget wrappers. */
@media (max-width: 820px) {
  .nb-telegram-single-shell > .nb-trending-panel,
  .nb-telegram-single-shell > .nb-trending-panel > *,
  .nb-telegram-single-shell > .nb-trending-panel .widget,
  .nb-telegram-single-shell > .nb-trending-panel .nb-sidebar-card,
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-panel,
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card,
  .nb-telegram-single-shell > .nb-trending-panel .nb-recent-card {
    display: block !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
    box-sizing: border-box;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card,
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-panel {
    position: static !important;
    overflow: visible !important;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-ranking,
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-list,
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card ol {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0;
    margin-left: 0;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-ranking li,
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card li {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-ranking li > div,
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card li > div,
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-list li {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-ranking a,
  .nb-telegram-single-shell > .nb-trending-panel .nb-trending-card li a,
  .nb-telegram-single-shell > .nb-trending-panel .nb-widget-list a {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }
}


/* Mobile PWA install invitation on the homepage. */
.nb-install-banner[hidden] { display: none; }
.nb-install-banner { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 9998; display: flex; align-items: center; gap: 10px; width: min(520px, calc(100% - 24px)); padding: 11px 12px; transform: translateX(-50%); border: 1px solid rgba(181, 138, 27, .45); border-radius: 18px; background: #10182d; box-shadow: 0 14px 38px rgba(11, 31, 51, .32); color: #fff; }
.nb-install-banner__icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; overflow: hidden; border: 1px solid rgba(255,255,255,.38); border-radius: 11px; background: #fff; } .nb-install-banner__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nb-install-banner__copy { display: grid; min-width: 0; gap: 2px; }
.nb-install-banner__copy strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.nb-install-banner__copy span { overflow: hidden; color: #bdc5d1; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.nb-install-banner__install { min-height: 38px; margin-left: auto; padding: 8px 14px; border: 0; border-radius: 11px; background: #3f78ed; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-install-banner__install:hover, .nb-install-banner__install:focus-visible { background: #5b8cf2; }
.nb-install-banner__close { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #bfc7d2; font-size: 24px; line-height: 1; cursor: pointer; }
.nb-install-banner__close:hover, .nb-install-banner__close:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.nb-install-banner button:focus-visible { outline: 3px solid #f0cf68; outline-offset: 2px; }
@media (min-width: 821px) { .nb-install-banner { width: min(480px, calc(100% - 48px)); } }
@media (max-width: 460px) { .nb-install-banner { gap: 8px; padding: 10px; border-radius: 15px; } .nb-install-banner__icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; } .nb-install-banner__copy strong { font-size: 12px; } .nb-install-banner__copy span { font-size: 10px; } .nb-install-banner__install { min-height: 36px; padding: 7px 11px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .nb-install-banner { transition: none; } }

/* Styles for the reusable external NetBixLabs widget. */
.btt-widget { margin: 0 0 18px; }
.btt-widget__head a:focus-visible, .btt-widget__link:focus-visible, .btt-widget__more:focus-visible { outline: 2px solid #b58a1b; outline-offset: 2px; }

/* === Dark mode: netralkan brand name & tombol APPS (hindari aksen emas) === */
html[data-theme="dark"] .nb-brand-name,
body[data-theme="dark"] .nb-brand-name { color: var(--nb-text); }
html[data-theme="dark"] .nb-brand-name:hover,
body[data-theme="dark"] .nb-brand-name:hover { color: var(--nb-text); }
html[data-theme="dark"] .nb-apps-button,
body[data-theme="dark"] .nb-apps-button { background: var(--nb-surface-soft); border-color: var(--nb-border-dark); color: var(--nb-text); }
html[data-theme="dark"] .nb-apps-button:hover,
body[data-theme="dark"] .nb-apps-button:hover { background: var(--nb-border-dark); border-color: var(--nb-border-dark); color: var(--nb-text); }

/* === Homepage layouts: Google News / Portal / Magazine === */
:root { --nb-gn-accent: #1a73e8; }
html[data-theme="dark"] .nb-gnews-heading, body[data-theme="dark"] .nb-gnews-heading { --nb-gn-accent: #8ab4f8; }

/* --- Google News --- */
.nb-gnews-shell { max-width: 1140px; margin-inline: auto; padding: 18px 16px 40px; }
.nb-gnews-heading { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--nb-gn-accent); color: var(--nb-text); font-size: 20px; }
.nb-gnews-heading a { color: inherit; }
.nb-gnews-top-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.nb-gnews-lead-media img { width: 100%; border-radius: 8px; }
.nb-gnews-lead-title { margin: 10px 0 6px; font-size: 26px; line-height: 1.25; }
.nb-gnews-lead-title a { color: var(--nb-text); }
.nb-gnews-eyebrow { margin: 0; color: var(--nb-gn-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.nb-gnews-meta { margin: 4px 0 0; color: var(--nb-muted); font-size: 12px; }
.nb-gnews-snippet { margin: 8px 0 0; color: var(--nb-muted); }
.nb-gnews-side { display: grid; gap: 14px; align-content: start; }
.nb-gnews-side-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--nb-border); }
.nb-gnews-side-thumb img { width: 86px; height: 64px; object-fit: cover; border-radius: 6px; }
.nb-gnews-side-item h4 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
.nb-gnews-side-item h4 a { color: var(--nb-text); }
.nb-gnews-side-item h4 a:hover { color: var(--nb-gn-accent); }
.nb-gnews-cluster { margin-top: 34px; }
.nb-gnews-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 34px; align-items: start; }
.nb-gnews-lower-grid .nb-gnews-cluster { margin-top: 26px; }
.nb-gnews-lower-grid .nb-gnews-cluster-grid { grid-template-columns: 1fr; }
.nb-gnews-lower-grid .nb-gnews-cluster-media img { max-height: 220px; object-fit: cover; }
.nb-gnews-lower-grid .nb-gnews-more { grid-column: 1 / -1; margin-top: 26px; }
.nb-gnews-cluster-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.nb-gnews-cluster-media img { width: 100%; border-radius: 8px; }
.nb-gnews-cluster-lead h3 { margin: 10px 0 4px; font-size: 20px; line-height: 1.3; }
.nb-gnews-cluster-lead h3 a { color: var(--nb-text); }
.nb-gnews-cluster-lead h3 a:hover { color: var(--nb-gn-accent); }
.nb-gnews-cluster-links { display: grid; gap: 0; align-content: start; }
.nb-gnews-link-item { padding: 12px 0; border-bottom: 1px solid var(--nb-border); }
.nb-gnews-link-item:first-child { padding-top: 0; }
.nb-gnews-link-item h4 { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
.nb-gnews-link-item h4 a { color: var(--nb-text); }
.nb-gnews-link-item h4 a:hover { color: var(--nb-gn-accent); }
.nb-gnews-more { margin-top: 34px; }
.nb-gnews-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.nb-gnews-more-item { padding: 12px 0; border-bottom: 1px solid var(--nb-border); }
.nb-gnews-more-item h4 { margin: 0 0 4px; font-size: 15px; }
.nb-gnews-more-item h4 a { color: var(--nb-text); }
.nb-gnews-more-item h4 a:hover { color: var(--nb-gn-accent); }
@media (max-width: 900px) {
  .nb-gnews-top-grid, .nb-gnews-cluster-grid { grid-template-columns: 1fr; }
  .nb-gnews-more-list { grid-template-columns: 1fr; }
  .nb-gnews-lower-grid { grid-template-columns: 1fr; }
  .nb-gnews-lower-grid .nb-gnews-more { grid-column: 1; }
}

/* --- Portal Berita (gaya Detik) --- */
.nb-pt-shell { max-width: 1140px; margin-inline: auto; padding: 18px 16px 40px; }
.nb-pt-heading { margin: 0 0 12px; color: var(--nb-text); font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.nb-pt-heading-live { color: var(--nb-gn-accent); }
.nb-pt-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--nb-gn-accent); animation: nb-pt-pulse 1.6s infinite; }
@keyframes nb-pt-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.nb-pt-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; padding: 16px; border: 1px solid var(--nb-border); border-radius: 8px; background: var(--nb-surface); }
.nb-pt-terkini-list { margin: 0; padding: 0; list-style: none; }
.nb-pt-terkini-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--nb-border); font-size: 14px; }
.nb-pt-terkini-list li:last-child { border-bottom: 0; }
.nb-pt-time { flex: 0 0 44px; color: var(--nb-gn-accent); font-weight: 800; }
.nb-pt-terkini-list a { color: var(--nb-text); }
.nb-pt-terkini-list a:hover { color: var(--nb-gn-accent); }
.nb-pt-populer { border-left: 1px solid var(--nb-border); padding-left: 24px; }
.nb-pt-populer-list { margin: 0; padding-left: 22px; }
.nb-pt-populer-list li { margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
.nb-pt-populer-list li::marker { color: var(--nb-gn-accent); font-weight: 800; }
.nb-pt-populer-list a { color: var(--nb-text); }
.nb-pt-populer-list a:hover { color: var(--nb-gn-accent); }
.nb-pt-hero { margin-top: 30px; }
.nb-pt-hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.nb-pt-hero-media img { width: 100%; border-radius: 8px; }
.nb-pt-cat { margin: 0 0 4px; color: var(--nb-gn-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.nb-pt-hero-title { margin: 6px 0; font-size: 26px; line-height: 1.25; }
.nb-pt-hero-title a { color: var(--nb-text); }
.nb-pt-meta { margin: 4px 0 0; color: var(--nb-muted); font-size: 12px; }
.nb-pt-snippet { margin: 8px 0 0; color: var(--nb-muted); }
.nb-pt-hero-side { display: grid; gap: 16px; align-content: start; }
.nb-pt-hero-item-media img { width: 100%; border-radius: 6px; }
.nb-pt-hero-item h4 { margin: 6px 0 0; font-size: 15px; line-height: 1.35; }
.nb-pt-hero-item h4 a { color: var(--nb-text); }
.nb-pt-hero-item h4 a:hover { color: var(--nb-gn-accent); }
.nb-pt-grid-section { margin-top: 34px; }
.nb-pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nb-pt-card { border: 1px solid var(--nb-border); border-radius: 8px; overflow: hidden; background: var(--nb-surface); }
.nb-pt-card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.nb-pt-card-body { padding: 12px 14px 14px; }
.nb-pt-card-title { margin: 2px 0 4px; font-size: 16px; line-height: 1.35; }
.nb-pt-card-title a { color: var(--nb-text); }
.nb-pt-card-title a:hover { color: var(--nb-gn-accent); }
.nb-pt-empty { color: var(--nb-muted); }
@media (max-width: 900px) {
  .nb-pt-top { grid-template-columns: 1fr; }
  .nb-pt-populer { border-left: 0; padding-left: 0; border-top: 1px solid var(--nb-border); padding-top: 16px; }
  .nb-pt-hero-grid { grid-template-columns: 1fr; }
  .nb-pt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .nb-pt-grid { grid-template-columns: 1fr; } }

/* --- Magazine Grid --- */
.nb-mag-shell { max-width: 1140px; margin-inline: auto; padding: 18px 16px 40px; }
.nb-mag-heading { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--nb-border-dark); color: var(--nb-text); font-size: 20px; }
.nb-mag-feature-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--nb-border); border-radius: 10px; background: var(--nb-surface); }
.nb-mag-feature-media img { width: 100%; border-radius: 8px; }
.nb-mag-cat { margin: 0 0 6px; color: var(--nb-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.nb-mag-feature-title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.nb-mag-feature-title a { color: var(--nb-text); }
.nb-mag-feature-title a:hover { color: var(--nb-gn-accent); }
.nb-mag-meta { margin: 0 0 8px; color: var(--nb-muted); font-size: 12px; }
.nb-mag-snippet { margin: 0; color: var(--nb-muted); }
.nb-mag-grid-section { margin-top: 30px; }
.nb-mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.nb-mag-card { border: 1px solid var(--nb-border); border-radius: 10px; overflow: hidden; background: var(--nb-surface); }
.nb-mag-card-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.nb-mag-card-body { padding: 12px 14px 14px; }
.nb-mag-card-title { margin: 2px 0 4px; font-size: 16px; line-height: 1.35; }
.nb-mag-card-title a { color: var(--nb-text); }
.nb-mag-card-title a:hover { color: var(--nb-gn-accent); }
.nb-mag-empty { color: var(--nb-muted); }
@media (max-width: 900px) {
  .nb-mag-feature-card { grid-template-columns: 1fr; }
  .nb-mag-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .nb-mag-grid { grid-template-columns: 1fr; } }

/* === Breaking news ticker === */
.nb-ticker { border-bottom: 1px solid var(--nb-border); background: var(--nb-surface); }
.nb-ticker-inner { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.nb-ticker-label { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: #b42318; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.nb-ticker-viewport { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.nb-ticker-track { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; padding-left: 100%; animation: nb-ticker-scroll linear infinite; }
.nb-ticker:hover .nb-ticker-track { animation-play-state: paused; }
.nb-ticker-item { color: var(--nb-text); font-size: 13px; text-decoration: none; }
.nb-ticker-item:hover { text-decoration: underline; }
.nb-ticker-sep { color: var(--nb-muted); }
@keyframes nb-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nb-ticker-track { animation: none; padding-left: 0; }
}

/* Share hint (dari revisi theme) */
.nb-share-hint { display: block; margin: 6px 0 10px; padding: 8px 12px; border: 1px dashed var(--nb-border); border-radius: 8px; background: var(--nb-surface-soft); color: var(--nb-muted); font-size: 11px; line-height: 1.55; }
.nb-share-buttons-detail .nb-share-heading { display: block; }
.nb-share-hint strong { color: var(--nb-text); }


/* Popup install hint */
.nb-install-popup__hint { margin: 6px 0 12px; padding: 8px 12px; border: 1px dashed var(--nb-border, rgba(0,0,0,.15)); border-radius: 8px; background: var(--nb-surface-soft, #f5f6f8); color: var(--nb-muted, #555); font-size: 12px; line-height: 1.55; }
