/* =========================================================
   Nexora — main stylesheet
   ========================================================= */

:root{
	--bg:#f6f7fb;
	--bg-soft:#fff;
	--ink:#0f172a;
	--ink-2:#1f2937;
	--muted:#64748b;
	--muted-2:#94a3b8;
	--line:#e5e7eb;
	--line-2:#eef0f4;
	--accent:#2563eb;
	--accent-2:#1d4ed8;
	--up:#16a34a;
	--dark:#0b1220;
	--radius:12px;
	--radius-lg:16px;
	--shadow-sm:0 1px 2px rgba(15,23,42,.04);
	--shadow:0 8px 24px rgba(15,23,42,.06);
	--container:1200px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
	margin:0;
	font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
	color:var(--ink);
	background:var(--bg);
	line-height:1.55;
	-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;line-height:1.2;color:var(--ink);font-weight:700}

.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link{position:absolute;left:-9999px;top:0;background:#000;color:#fff;padding:.5rem 1rem;z-index:1000}
.skip-link:focus{left:1rem;top:1rem}

.nx-container{max-width:var(--container);margin:0 auto;padding:0 20px}

/* ===== Icons ===== */
.nx-ico{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:currentColor}
.nx-ico svg{width:100%;height:100%}
.nx-ico--sm{width:16px;height:16px}
.nx-ico--xs{width:12px;height:12px}
.nx-ico--accent{color:var(--accent)}
.nx-ico--amber{color:#f59e0b}

/* ===== Top bar ===== */
.nx-topbar{background:#fff;border-bottom:1px solid var(--line-2);font-size:13px;color:#475569}
.nx-topbar__inner{display:flex;align-items:center;justify-content:space-between;height:36px;gap:16px}
.nx-topbar__left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nx-topbar__weather{display:inline-flex;align-items:center;gap:6px}
.nx-topbar__weather strong{color:var(--ink-2);font-weight:600}
.nx-topbar__dot{color:var(--muted-2)}
.nx-topbar__right{display:flex;align-items:center;gap:18px}
.nx-topbar__menu{display:flex;align-items:center;gap:18px}
.nx-topbar__menu a{color:#475569}
.nx-topbar__menu a:hover{color:var(--ink)}
.nx-topbar__social{display:flex;align-items:center;gap:12px;color:#475569}
.nx-topbar__social a{display:inline-flex}
.nx-topbar__social a:hover{color:var(--ink)}

/* ===== Header ===== */
.nx-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.nx-header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:84px}
.nx-brand__link{display:inline-flex;align-items:center;gap:12px;color:var(--ink)}
.nx-brand__mark{
	width:42px;height:42px;border:1.5px solid var(--ink);border-radius:8px;
	display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;
	font-family:'Playfair Display',serif;
}
.nx-brand__text{display:flex;flex-direction:column;line-height:1}
.nx-brand__name{font-family:'Playfair Display',serif;font-weight:800;font-size:24px;letter-spacing:.5px}
.nx-brand__tag{font-size:11px;color:var(--muted);margin-top:4px}

.nx-nav__list{display:flex;align-items:center;gap:28px}
.nav-link{
	display:inline-block;padding:6px 0;color:#334155;font-weight:500;font-size:15px;
	border-bottom:2px solid transparent;
}
.nav-link:hover{color:var(--ink)}
.nav-link.is-active{color:var(--ink);border-bottom-color:var(--ink)}

.nx-header__actions{display:flex;align-items:center;gap:10px}
.nx-iconbtn{
	width:38px;height:38px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#334155;
}
.nx-iconbtn:hover{background:var(--bg);color:var(--ink)}
.nx-mobile-toggle{display:none}

.nx-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	padding:10px 18px;border-radius:8px;font-weight:600;font-size:14px;
	transition:transform .06s ease,background .15s ease,color .15s ease,box-shadow .15s ease;
	white-space:nowrap;
}
.nx-btn:hover{transform:translateY(-1px)}
.nx-btn--dark{background:var(--ink);color:#fff}
.nx-btn--dark:hover{background:#000;color:#fff}
.nx-btn--light{background:#fff;color:var(--ink);padding:12px 20px;border-radius:10px}
.nx-btn--light:hover{color:var(--ink);box-shadow:var(--shadow)}
.nx-btn--primary{background:var(--accent);color:#fff}
.nx-btn--primary:hover{background:var(--accent-2);color:#fff}
.nx-btn--ghost{background:#fff;color:var(--ink);border:1px solid var(--line);padding:10px 22px;border-radius:999px}
.nx-btn--ghost:hover{background:var(--bg)}
.nx-btn--block{width:100%}

.nx-search-panel{border-top:1px solid var(--line-2);background:#fff;padding:14px 0}

/* ===== Search form (header panel, sidebar widget, WP default) ===== */
.nx-searchform{display:flex;gap:8px;align-items:stretch;width:100%}
.nx-searchform__field{
	position:relative;flex:1;display:flex;align-items:center;
	background:#fff;border:1px solid var(--line);border-radius:10px;
	transition:border-color .15s ease,box-shadow .15s ease;
}
.nx-searchform__field:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.nx-searchform__icon{position:absolute;left:12px;color:var(--muted);pointer-events:none}
.nx-searchform input[type=search]{
	width:100%;padding:11px 14px 11px 38px;border:0;background:transparent;
	font:inherit;font-size:14px;color:var(--ink);outline:none;border-radius:10px;
}
.nx-searchform input[type=search]::placeholder{color:var(--muted-2)}
.nx-searchform__submit{
	padding:0 18px;border-radius:10px;background:var(--ink);color:#fff;
	font-weight:600;font-size:14px;border:0;cursor:pointer;white-space:nowrap;
	transition:background .15s ease,transform .06s ease;
}
.nx-searchform__submit:hover{background:#000;transform:translateY(-1px)}

/* Style WordPress core search widget (legacy + block) so it matches */
.widget_search .search-form,
.wp-block-search,
.wp-block-search__inside-wrapper{display:flex;gap:8px;align-items:stretch;width:100%}
.widget_search .search-form input[type=search],
.wp-block-search__input{
	flex:1;width:100%;padding:11px 14px;border:1px solid var(--line);
	border-radius:10px;font:inherit;font-size:14px;background:#fff;color:var(--ink);outline:none;
	transition:border-color .15s ease,box-shadow .15s ease;
}
.widget_search .search-form input[type=search]:focus,
.wp-block-search__input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.widget_search .search-form input[type=submit],
.wp-block-search__button{
	padding:0 18px;border-radius:10px;background:var(--ink);color:#fff;
	font-weight:600;font-size:14px;border:0;cursor:pointer;white-space:nowrap;
}
.widget_search .search-form input[type=submit]:hover,
.wp-block-search__button:hover{background:#000}
.wp-block-search__label{font-size:15px;font-weight:700;margin:0 0 10px;display:block}

/* ===== Generic sidebar widgets ===== */
.nx-sidebar .widget,
.nx-sidebar--single .widget{
	background:#fff;border:1px solid var(--line);border-radius:14px;
	padding:20px;box-shadow:var(--shadow-sm);
}
.widget-title,
.nx-sidebar .widget h2,
.nx-sidebar .widget h3,
.nx-sidebar--single .widget h2,
.nx-sidebar--single .widget h3{
	font-size:16px;font-weight:700;margin:0 0 12px;color:var(--ink);
}
.nx-sidebar .widget ul,
.nx-sidebar--single .widget ul{margin:0;padding:0;list-style:none}
.nx-sidebar .widget li,
.nx-sidebar--single .widget li{
	padding:10px 0;border-bottom:1px solid var(--line-2);font-size:14px;color:var(--ink-2);
}
.nx-sidebar .widget li:last-child,
.nx-sidebar--single .widget li:last-child{border-bottom:0}
.nx-sidebar .widget a,
.nx-sidebar--single .widget a{color:var(--ink-2);font-weight:500}
.nx-sidebar .widget a:hover,
.nx-sidebar--single .widget a:hover{color:var(--accent)}

/* ===== Sections ===== */
.nx-main{display:block}
.nx-section{padding:28px 0}
.nx-section--hero{padding-top:24px;padding-bottom:24px}
.nx-section--strip{padding:8px 0 12px}
.nx-section--main{padding-bottom:48px}

/* ===== Hero ===== */
.nx-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:stretch}
.nx-hero{position:relative;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);min-height:520px;height:100%;color:#fff;isolation:isolate}
.nx-hero__slides{position:absolute;inset:0}
.nx-hero__slide{
	position:absolute;inset:0;background-size:cover;background-position:center;
	opacity:0;visibility:hidden;transition:opacity .6s ease;
}
.nx-hero__slide.is-active{opacity:1;visibility:visible;z-index:1}
.nx-hero__overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,12,28,.05) 0%,rgba(7,12,28,.55) 55%,rgba(7,12,28,.85) 100%)}
.nx-hero__content{position:absolute;left:0;right:0;bottom:0;padding:36px 40px;max-width:640px;z-index:2}
.nx-hero__title{
	font-family:'Playfair Display',serif;font-weight:700;font-size:42px;line-height:1.1;color:#fff;margin:14px 0 12px;
}
.nx-hero__title a{color:#fff}
.nx-hero__excerpt{color:rgba(255,255,255,.85);font-size:15px;margin:0 0 20px;max-width:560px}
.nx-hero__meta{display:flex;align-items:center;gap:12px;margin-bottom:18px;color:rgba(255,255,255,.9)}
.nx-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.6)}
.nx-hero__byline{display:flex;flex-direction:column;line-height:1.2}
.nx-hero__byline strong{font-size:14px;font-weight:600}
.nx-hero__byline span{font-size:12px;color:rgba(255,255,255,.7)}
.nx-hero__dots{position:absolute;left:50%;transform:translateX(-50%);bottom:24px;display:flex;gap:6px;z-index:3}
.nx-hero__dot{width:24px;height:3px;border-radius:2px;background:rgba(255,255,255,.4);border:0;padding:0;cursor:pointer;transition:background .2s ease,width .2s ease}
.nx-hero__dot:hover{background:rgba(255,255,255,.7)}
.nx-hero__dot.is-active{background:#fff;width:32px}
.nx-hero__nav{position:absolute;right:24px;bottom:24px;display:flex;gap:8px;z-index:3}
.nx-circle{
	width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.85);color:var(--ink);
	display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);
}
.nx-circle:hover{background:#fff;color:var(--ink)}
.nx-circle--sm{width:32px;height:32px}

.nx-eyebrow{
	display:inline-flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
	color:var(--accent);
}
.nx-eyebrow--accent{color:#7dd3fc}
.nx-eyebrow--small{font-size:11px;letter-spacing:.1em}

/* ===== Trending sidebar ===== */
.nx-trending{
	background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
	padding:20px;box-shadow:var(--shadow-sm);
}
.nx-trending__header{display:flex;align-items:center;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line-2);margin-bottom:6px}
.nx-trending__header h2{font-size:16px}
.nx-trending__list{display:flex;flex-direction:column}
.nx-trending__item{display:grid;grid-template-columns:32px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--line-2)}
.nx-trending__item:last-child{border-bottom:0}
.nx-trending__num{font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:var(--muted-2);line-height:1}
.nx-trending__body{display:flex;flex-direction:column;gap:4px}
.nx-trending__title{font-weight:600;color:var(--ink);font-size:14px;line-height:1.35}
.nx-trending__title:hover{color:var(--accent)}
.nx-trending__time{font-size:12px;color:var(--muted)}
.nx-trending__cta{
	display:flex;align-items:center;justify-content:center;gap:8px;
	margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;
	font-weight:500;color:var(--ink-2);background:#fafbfd;
}
.nx-trending__cta:hover{background:var(--bg);color:var(--ink)}

/* ===== Category strip ===== */
.nx-catstrip{
	background:#fff;border:1px solid var(--line);border-radius:14px;
	display:flex;align-items:center;padding:6px;box-shadow:var(--shadow-sm);
}
.nx-catstrip__list{display:flex;flex:1;justify-content:space-between;gap:8px;overflow-x:auto;padding:6px 4px}
.nx-catstrip__list a{
	display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;
	color:#334155;font-weight:500;white-space:nowrap;
}
.nx-catstrip__list a:hover{background:var(--bg);color:var(--ink)}
.nx-catstrip__nav{
	width:32px;height:32px;border-radius:50%;display:none;align-items:center;justify-content:center;color:var(--muted);
}
.nx-catstrip__nav--next{display:inline-flex}

/* ===== Two-column main grid ===== */
.nx-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.nx-main-grid__col{min-width:0;display:flex;flex-direction:column;gap:32px}

.nx-block__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px;flex-wrap:wrap}
.nx-block__title{font-family:'Playfair Display',serif;font-size:26px;font-weight:700}
.nx-block__nav{display:flex;gap:8px}

/* ===== Editor's Picks ===== */
.nx-picks__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.nx-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease}
.nx-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.nx-card__media{display:block;height:140px;background-size:cover;background-position:center;background-color:#e5e7eb}
.nx-card__body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px}
.nx-card__title{font-size:15px;line-height:1.35;font-weight:700}
.nx-card__title a:hover{color:var(--accent)}
.nx-card__meta{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}
.nx-dot{color:var(--muted-2)}

/* ===== Tabs ===== */
.nx-tabs{display:flex;gap:6px;flex-wrap:wrap}
.nx-tab{
	padding:6px 12px;border-radius:999px;color:var(--muted);font-size:13px;font-weight:500;
}
.nx-tab:hover{color:var(--ink)}
.nx-tab.is-active{background:#fff;border:1px solid var(--line);color:var(--ink);box-shadow:var(--shadow-sm)}
.nx-tab--mini{padding:4px 10px;font-size:12px}

/* ===== Latest News rows ===== */
.nx-latest__list{display:flex;flex-direction:column}
.nx-row{
	display:grid;grid-template-columns:140px 1fr 28px;gap:18px;align-items:center;
	padding:18px 0;border-bottom:1px solid var(--line-2);
}
.nx-row:first-child{padding-top:6px}
.nx-row:last-child{border-bottom:0}
.nx-row__media{display:block;height:96px;border-radius:10px;background-size:cover;background-position:center;background-color:#e5e7eb}
.nx-row__title{font-size:17px;font-weight:700;line-height:1.3;margin:6px 0 6px}
.nx-row__title a:hover{color:var(--accent)}
.nx-row__desc{font-size:14px;color:#475569;margin:0 0 8px}
.nx-row__meta{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}
.nx-row__bookmark{color:var(--muted-2)}
.nx-row__bookmark:hover{color:var(--ink)}
.nx-latest__more{display:flex;justify-content:center;padding-top:18px}

/* ===== Sidebar ===== */
.nx-sidebar{display:flex;flex-direction:column;gap:24px;position:sticky;top:104px}
.nx-newsletter{
	background:var(--dark);color:#fff;border-radius:14px;padding:22px;
}
.nx-newsletter__header{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:#fff}
.nx-newsletter__header h3{color:#fff;font-size:18px}
.nx-newsletter p{color:rgba(255,255,255,.75);font-size:13px;margin:6px 0 14px}
.nx-newsletter__form{display:flex;flex-direction:column;gap:10px}
.nx-newsletter input[type=email]{
	width:100%;padding:11px 14px;border-radius:10px;border:1px solid #1f2a44;background:#0f172a;color:#fff;font-size:14px;
}
.nx-newsletter input[type=email]::placeholder{color:#64748b}
.nx-newsletter small{display:block;color:rgba(255,255,255,.55);font-size:12px;margin-top:10px}

.nx-market,.nx-popular{
	background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm);
}
.nx-market__header,.nx-popular__header{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.nx-market__header h3,.nx-popular__header h3{font-size:16px}
.nx-market__tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}
.nx-market__table{width:100%;border-collapse:collapse;font-size:13px}
.nx-market__table td{padding:10px 0;border-bottom:1px solid var(--line-2)}
.nx-market__table td:nth-child(1){font-weight:600;color:var(--ink)}
.nx-market__table td:nth-child(2){text-align:right;color:#475569}
.nx-market__table td:nth-child(3){text-align:right;color:var(--up);font-weight:600;white-space:nowrap}
.nx-market__table td:nth-child(3) .nx-ico{color:var(--up);margin-left:4px}
.nx-market__table tr:last-child td{border-bottom:0}
.nx-market__note{font-size:11px;color:var(--muted);margin:10px 0 0}

.nx-popular__list{display:flex;flex-direction:column}
.nx-popular__list li{display:grid;grid-template-columns:18px 56px 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-2)}
.nx-popular__list li:last-child{border-bottom:0}
.nx-popular__num{color:var(--muted-2);font-weight:700;font-size:13px}
.nx-popular__thumb{display:block;width:56px;height:48px;border-radius:8px;background-size:cover;background-position:center;background-color:#e5e7eb}
.nx-popular__title{font-weight:600;font-size:13px;line-height:1.35;display:block}
.nx-popular__title:hover{color:var(--accent)}
.nx-popular__date{font-size:11px;color:var(--muted)}

/* ===== Footer ===== */
.nx-footer{background:#fff;border-top:1px solid var(--line);margin-top:20px}
.nx-footer__grid{
	display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr;gap:32px;
	padding:48px 20px 32px;
}
.nx-footer__about{color:var(--muted);font-size:13px;margin:14px 0 16px;max-width:280px}
.nx-footer__social{display:flex;gap:14px;color:#334155}
.nx-footer__social a:hover{color:var(--ink)}
.nx-footer__title{font-size:15px;margin-bottom:14px}
.nx-footer__menu li,.nx-footer__contact li{margin-bottom:10px;font-size:14px;color:#475569}
.nx-footer__menu a:hover,.nx-footer__contact a:hover{color:var(--ink)}
.nx-footer__contact li{display:flex;gap:10px;align-items:flex-start;line-height:1.5}
.nx-footer__contact .nx-ico{margin-top:3px;color:var(--muted)}
.nx-footer__bottom{border-top:1px solid var(--line-2);padding:18px 0;color:var(--muted);font-size:13px;text-align:center}

.is-up{color:var(--up)}
.is-down{color:#dc2626}

/* Loading / disabled states */
.nx-btn[disabled],.nx-btn.is-loading{opacity:.7;cursor:wait;pointer-events:none}
.nx-latest__list.is-loading{opacity:.5;pointer-events:none;transition:opacity .15s ease}
.nx-row__bookmark{display:inline-flex;align-items:center;justify-content:center;color:var(--muted-2);width:28px;height:28px;border-radius:6px}
.nx-row__bookmark:hover{color:var(--ink);background:var(--bg)}

/* Picks horizontal scroll fallback */
.nx-picks__grid{scroll-behavior:smooth}
@media (max-width:1080px){
	.nx-picks__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:6px}
	.nx-picks__grid > .nx-card{flex:0 0 78%;scroll-snap-align:start}
}

/* ===== Responsive ===== */
@media (max-width:1080px){
	.nx-hero-grid{grid-template-columns:1fr}
	.nx-main-grid{grid-template-columns:1fr}
	.nx-sidebar{position:static}
	.nx-footer__grid{grid-template-columns:1fr 1fr 1fr;}
}
@media (max-width:860px){
	.nx-topbar__left .nx-topbar__weather,
	.nx-topbar__left .nx-topbar__location,
	.nx-topbar__right .nx-topbar__nav{display:none}
	.nx-nav{display:none}
	.nx-mobile-toggle{display:inline-flex}
	.nx-hero__title{font-size:30px}
	.nx-hero{min-height:440px}
	.nx-hero__content{padding:24px}
	.nx-row{grid-template-columns:96px 1fr 24px;gap:12px}
	.nx-row__media{height:80px}
	.nx-footer__grid{grid-template-columns:1fr 1fr;gap:24px;padding:32px 20px}
}
@media (max-width:560px){
	.nx-picks__grid{grid-template-columns:1fr}
	.nx-hero__title{font-size:24px}
	.nx-hero{min-height:380px}
	.nx-block__title{font-size:22px}
	.nx-footer__grid{grid-template-columns:1fr}
	.nx-header__inner{height:72px}
	.nx-btn--dark{padding:8px 14px}
}

/* =========================================================
   Single post / Page
   ========================================================= */
.nx-single-section{padding-top:24px}
.nx-main-grid > .nx-main-grid__col > .nx-single{
	background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
	padding:32px 36px;box-shadow:var(--shadow-sm);
}

.nx-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:18px}
.nx-breadcrumbs a{color:var(--muted)}
.nx-breadcrumbs a:hover{color:var(--ink)}
.nx-breadcrumbs .nx-dot{color:var(--muted-2)}
.nx-breadcrumbs .is-current{color:var(--ink-2);font-weight:500;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.nx-single__header{margin-bottom:22px}
.nx-single__header .nx-eyebrow{margin-bottom:10px}
.nx-single__title{
	font-family:'Playfair Display',serif;font-weight:700;
	font-size:40px;line-height:1.15;letter-spacing:-.01em;margin:6px 0 14px;
}
.nx-single__lede{
	font-size:18px;line-height:1.6;color:#475569;margin:0 0 22px;
	font-weight:400;
}
.nx-single__byline{
	display:flex;align-items:center;gap:12px;flex-wrap:wrap;
	padding:14px 0;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);
}
.nx-single__byline .nx-avatar{width:40px;height:40px;border:0}
.nx-single__author{display:flex;flex-direction:column;line-height:1.3;flex:1;min-width:160px}
.nx-single__author strong{font-size:14px;font-weight:600;color:var(--ink)}
.nx-single__author span{font-size:12px;color:var(--muted)}
.nx-single__author a{color:var(--muted)}
.nx-single__author a:hover{color:var(--accent)}
.nx-single__share{display:flex;gap:6px;margin-left:auto}
.nx-iconbtn--sm{width:32px;height:32px;border:1px solid var(--line);border-radius:50%}
.nx-iconbtn--sm:hover{background:var(--bg);color:var(--ink)}

.nx-single__hero{margin:24px 0 28px;border-radius:14px;overflow:hidden;border:1px solid var(--line-2)}
.nx-single__hero img{display:block;width:100%;height:auto}
.nx-single__hero figcaption{padding:10px 14px;font-size:12px;color:var(--muted);background:#fafbfd;border-top:1px solid var(--line-2)}

.nx-single__content{font-size:17px;line-height:1.78;color:#1f2937}
.nx-single__content > *+*{margin-top:1.05em}
.nx-single__content p{margin:0}
.nx-single__content p+p{margin-top:1.05em}
.nx-single__content h2{
	font-family:'Playfair Display',serif;font-size:28px;line-height:1.25;margin-top:1.6em;margin-bottom:.5em;
}
.nx-single__content h3{font-size:22px;line-height:1.3;margin-top:1.4em;margin-bottom:.4em;font-weight:700}
.nx-single__content h4{font-size:18px;font-weight:700;margin-top:1.2em;margin-bottom:.3em}
.nx-single__content a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.nx-single__content a:hover{color:var(--accent-2)}
.nx-single__content blockquote{
	border-left:4px solid var(--ink);background:#fafbfd;
	margin:1.4em 0;padding:18px 22px;border-radius:0 10px 10px 0;
	font-family:'Playfair Display',serif;font-size:20px;line-height:1.5;color:var(--ink-2);font-style:italic;
}
.nx-single__content blockquote cite{display:block;margin-top:8px;font-family:'Inter',sans-serif;font-size:13px;color:var(--muted);font-style:normal}
.nx-single__content ul,.nx-single__content ol{padding-left:1.4em;margin:1.05em 0}
.nx-single__content li+li{margin-top:.4em}
.nx-single__content code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-size:.92em}
.nx-single__content pre{background:#0b1220;color:#e2e8f0;padding:16px 18px;border-radius:10px;overflow:auto;font-size:14px;line-height:1.6}
.nx-single__content pre code{background:transparent;color:inherit;padding:0}
.nx-single__content img,.nx-single__content figure{border-radius:10px;max-width:100%;height:auto}
.nx-single__content figure{margin:1.4em 0}
.nx-single__content table{width:100%;border-collapse:collapse;margin:1.2em 0;font-size:14px}
.nx-single__content table th,.nx-single__content table td{padding:10px 12px;border:1px solid var(--line)}
.nx-single__content table th{background:#fafbfd;text-align:left}

.nx-single__pages{margin-top:24px;font-size:14px;color:var(--muted)}
.nx-single__pages a{display:inline-block;margin:0 4px;padding:4px 10px;border:1px solid var(--line);border-radius:6px;color:var(--ink-2)}

.nx-single__tags{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 4px;padding-top:22px;border-top:1px solid var(--line-2)}
.nx-tagchip{
	display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;
	background:var(--bg);color:#475569;font-size:12px;font-weight:500;
}
.nx-tagchip:hover{background:var(--ink);color:#fff}

.nx-author{
	display:flex;gap:18px;align-items:flex-start;padding:22px;margin-top:28px;
	background:#fafbfd;border:1px solid var(--line-2);border-radius:14px;
}
.nx-author .nx-avatar--lg{width:64px;height:64px;border-radius:50%;border:0;flex-shrink:0}
.nx-author h3{font-family:'Playfair Display',serif;font-size:20px;margin:4px 0 6px}
.nx-author p{margin:0 0 10px;color:#475569;font-size:14px;line-height:1.6}
.nx-author__more{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--accent)}
.nx-author__more:hover{color:var(--accent-2)}

.nx-prevnext{
	display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0 0;
}
.nx-prevnext__item{
	display:flex;flex-direction:column;gap:6px;padding:16px 18px;
	border:1px solid var(--line);border-radius:12px;background:#fff;
	transition:background .15s ease,transform .15s ease,box-shadow .15s ease;
	min-height:80px;
}
.nx-prevnext__item:hover{background:#fafbfd;box-shadow:var(--shadow-sm)}
.nx-prevnext__item--right{text-align:right;align-items:flex-end}
.nx-prevnext__item .nx-eyebrow{color:var(--muted);font-weight:600}
.nx-prevnext__item strong{font-size:15px;line-height:1.35;color:var(--ink);font-weight:700}

.nx-related{margin-top:32px}
.nx-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

/* Comments */
.nx-comments{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.nx-comments h3{font-family:'Playfair Display',serif;font-size:24px;margin:0 0 18px}
.comment-list{margin:0 0 24px;padding:0;list-style:none}
.comment-list li{padding:14px 0;border-bottom:1px solid var(--line-2)}
.comment-list .children{list-style:none;margin:14px 0 0;padding-left:24px;border-left:2px solid var(--line-2)}
.comment-author{font-weight:600;color:var(--ink)}
.comment-author .says{display:none}
.comment-meta{font-size:12px;color:var(--muted);margin-bottom:6px}
.comment-meta a{color:var(--muted)}
.comment-body p{margin:6px 0;line-height:1.6}
.reply a{font-size:12px;color:var(--accent);font-weight:600}

.comment-form{display:grid;gap:12px;margin-top:18px}
.comment-form label{font-size:13px;font-weight:500;color:var(--ink-2);display:block;margin-bottom:4px}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea{
	width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:8px;font:inherit;
	background:#fff;color:var(--ink);
}
.comment-form input:focus,.comment-form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.comment-form textarea{min-height:120px;resize:vertical}
.comment-form .submit{
	background:var(--ink);color:#fff;padding:11px 22px;border-radius:8px;font-weight:600;cursor:pointer;border:0;
	width:max-content;
}
.comment-form .submit:hover{background:#000}

/* Sidebar widgets reused on single */
.nx-catlist{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm)}
.nx-catlist__header h3{font-size:16px;margin:0 0 12px}
.nx-catlist__list li{
	display:flex;justify-content:space-between;align-items:center;
	padding:10px 0;border-bottom:1px solid var(--line-2);font-size:14px;
}
.nx-catlist__list li:last-child{border-bottom:0}
.nx-catlist__list a{color:var(--ink-2);font-weight:500}
.nx-catlist__list a:hover{color:var(--accent)}
.nx-catlist__list span{
	font-size:11px;color:var(--muted);background:var(--bg);
	padding:2px 8px;border-radius:999px;font-weight:600;
}

.nx-sidebar--single{position:sticky;top:104px;display:flex;flex-direction:column;gap:24px}

@media (max-width:1080px){
	.nx-main-grid > .nx-main-grid__col > .nx-single{padding:24px 22px}
	.nx-single__title{font-size:32px}
	.nx-related__grid{grid-template-columns:1fr 1fr}
	.nx-sidebar--single{position:static}
}
@media (max-width:560px){
	.nx-main-grid > .nx-main-grid__col > .nx-single{padding:20px 16px;border-radius:12px}
	.nx-single__title{font-size:26px}
	.nx-single__lede{font-size:16px}
	.nx-single__content{font-size:16px}
	.nx-single__content h2{font-size:24px}
	.nx-prevnext{grid-template-columns:1fr}
	.nx-related__grid{grid-template-columns:1fr}
	.nx-author{flex-direction:column;text-align:left}
}

/* ===== Back to top ===== */
.nx-totop{
	position:fixed;right:24px;bottom:24px;z-index:60;
	width:44px;height:44px;border-radius:50%;
	background:var(--ink);color:#fff;border:0;cursor:pointer;
	display:inline-flex;align-items:center;justify-content:center;
	box-shadow:0 10px 24px rgba(15,23,42,.18);
	opacity:0;transform:translateY(10px) scale(.9);
	transition:opacity .2s ease,transform .2s ease,background .15s ease;
	pointer-events:none;
}
.nx-totop svg{width:20px;height:20px}
.nx-totop.is-visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.nx-totop:hover{background:#000}
.nx-totop:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (max-width:560px){.nx-totop{right:16px;bottom:16px;width:40px;height:40px}}

/* ===== Dark mode (toggle) ===== */
body.nx-dark{
	--bg:#0b1220;--bg-soft:#0f172a;--ink:#e2e8f0;--ink-2:#f1f5f9;
	--muted:#94a3b8;--muted-2:#64748b;--line:#1f2a44;--line-2:#172033;
}
body.nx-dark .nx-topbar,
body.nx-dark .nx-header,
body.nx-dark .nx-trending,
body.nx-dark .nx-catstrip,
body.nx-dark .nx-card,
body.nx-dark .nx-market,
body.nx-dark .nx-popular,
body.nx-dark .nx-footer,
body.nx-dark .nx-search-panel{background:var(--bg-soft);color:var(--ink)}
body.nx-dark .nx-trending__cta{background:#0b1220}
body.nx-dark .nx-btn--dark{background:#fff;color:#0b1220}
body.nx-dark .nx-btn--ghost{background:transparent;color:var(--ink)}
body.nx-dark .nav-link,
body.nx-dark .nx-topbar__menu a,
body.nx-dark .nx-row__desc,
body.nx-dark .nx-footer__menu li,
body.nx-dark .nx-footer__contact li{color:#cbd5e1}
body.nx-dark .nx-tab.is-active{background:#0b1220;color:#fff}
body.nx-dark .nx-main-grid > .nx-main-grid__col > .nx-single,
body.nx-dark .nx-prevnext__item,
body.nx-dark .nx-catlist{background:var(--bg-soft);color:var(--ink)}
body.nx-dark .nx-author,
body.nx-dark .nx-single__hero figcaption,
body.nx-dark .nx-single__content blockquote,
body.nx-dark .nx-single__content table th{background:#0b1220}
body.nx-dark .nx-single__lede,
body.nx-dark .nx-single__content,
body.nx-dark .nx-author p{color:#cbd5e1}
body.nx-dark .nx-tagchip{background:#0b1220;color:#cbd5e1}
body.nx-dark .nx-tagchip:hover{background:#fff;color:#0b1220}
body.nx-dark .comment-form input,
body.nx-dark .comment-form textarea{background:#0b1220;color:var(--ink);border-color:var(--line)}
body.nx-dark .comment-form .submit{background:#fff;color:#0b1220}
body.nx-dark .nx-sidebar .widget,
body.nx-dark .nx-sidebar--single .widget{background:var(--bg-soft);color:var(--ink)}
body.nx-dark .nx-searchform__field,
body.nx-dark .widget_search .search-form input[type=search],
body.nx-dark .wp-block-search__input{background:#0b1220;border-color:var(--line);color:var(--ink)}
body.nx-dark .nx-searchform input[type=search]{color:var(--ink)}
body.nx-dark .nx-searchform__submit,
body.nx-dark .widget_search .search-form input[type=submit],
body.nx-dark .wp-block-search__button{background:#fff;color:#0b1220}
body.nx-dark .nx-searchform__submit:hover,
body.nx-dark .widget_search .search-form input[type=submit]:hover,
body.nx-dark .wp-block-search__button:hover{background:#e2e8f0}
body.nx-dark .nx-totop{background:#fff;color:#0b1220}
body.nx-dark .nx-totop:hover{background:#e2e8f0}
