/* ==========================================================================
   NsN Child — light global shell
   ========================================================================== */

:root {
  --nsn-bg: #f4f7fb;
  --nsn-surface: #ffffff;
  --nsn-surface-2: #eef2f7;
  --nsn-text: #0f172a;
  --nsn-muted: #64748b;
  --nsn-accent: #0284c7;
  --nsn-accent-2: #0ea5e9;
  --nsn-accent-soft: rgba(14, 165, 233, 0.12);
  --nsn-border: rgba(15, 23, 42, 0.1);
  --nsn-radius: 14px;
  --nsn-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --nsn-font-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  --nsn-font-display: "Merriweather", "Noto Serif", Georgia, serif;
  --nsn-font-tech: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --nsn-font-ui: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}

body.nsn-tech {
  --nsn-font: var(--nsn-font-body);
  font-family: var(--nsn-font-body) !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Vietnamese-friendly role-based typography. Icon-only controls retain their icon font. */
body.nsn-tech :where(p, li, label, button, input, textarea, select, option, th, td, blockquote, .entry-content, .widget, .nsn-weather-widget) {
  font-family: var(--nsn-font-body) !important;
}

body.nsn-tech :where(h1, h2, h3, h4, h5, h6, .entry-title, .post-title, .widget-title, .section-title, .archive-title) {
  font-family: var(--nsn-font-display) !important;
  font-optical-sizing: auto;
}

body.nsn-tech :where(.main-navigation a, #site-navigation a, .menu-item a, .entry-meta, .post-meta, .post-cats, .read-more, .nsn-search-form, .nsn-weather-widget button) {
  font-family: var(--nsn-font-ui) !important;
}

body.nsn-tech :where(pre, code, kbd, samp, .repo-name, .repository-name, .github-repo, .nsn-tech-label) {
  font-family: var(--nsn-font-tech) !important;
  font-variant-ligatures: none;
}

/* Soften header on home */
body.nsn-home.nsn-custom-front .site-header,
body.nsn-home.nsn-custom-front #masthead {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(1.1) blur(8px);
}

body.nsn-home.nsn-custom-front .site-footer {
  background: #fff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}

/* Logo sizing */
.custom-logo-link img,
.site-logo img,
.custom-logo {
  max-height: 48px;
  width: auto;
  border-radius: 10px;
}

/* Primary menu polish */
.nsn-tech .main-navigation a,
.nsn-tech #site-navigation a,
.nsn-tech .menu-item a {
  transition: color 0.15s ease, background 0.15s ease;
}

.nsn-tech .main-navigation .current-menu-item > a,
.nsn-tech .main-navigation a:hover {
  color: var(--nsn-accent) !important;
}

.nsn-tech a {
  text-underline-offset: 2px;
}

.site-footer a[href*="blazethemes.com"] {
  display: none !important;
}

/* Soft page canvas for all inner pages */
body.nsn-tech.nsn-light:not(.nsn-custom-front) {
  background: #f4f7fb !important;
}

body.nsn-tech .primary-content {
  min-width: 0;
}

/* ==========================================================================
   NsN — Archive / Category / Search / Blog list polish
   ========================================================================== */

body.archive,
body.blog:not(.nsn-custom-front),
body.search,
body.category,
body.tag,
body.author {
  background: #f4f7fb !important;
}

/* Layout container */
body.archive #primary.site-main,
body.blog:not(.nsn-custom-front) #primary.site-main,
body.search #primary.site-main,
body.category #primary.site-main {
  padding-bottom: 48px;
}

body.archive .newsmatic-container,
body.category .newsmatic-container,
body.search .newsmatic-container,
body.blog:not(.nsn-custom-front) .newsmatic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Page header (category title) ---- */
body.archive .page-header,
body.category .page-header,
body.search .page-header,
body.blog:not(.nsn-custom-front) .page-header {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 22px 24px 20px;
  margin: 8px 0 22px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

body.archive .page-header::before,
body.category .page-header::before,
body.search .page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  border-radius: 16px 0 0 16px;
}

body.archive .page-title,
body.category .page-title,
body.search .page-title,
body.blog:not(.nsn-custom-front) .page-title,
body.archive h1.page-title.newsmatic-block-title {
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  border: 0 !important;
  background: none !important;
}

body.archive .page-header .archive-description,
body.category .taxonomy-description,
body.archive .page-header p {
  margin: 8px 0 0 10px !important;
  color: #64748b !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  max-width: 62ch;
}

/* ---- Post list → modern cards ---- */
body.archive .news-list-wrap,
body.category .news-list-wrap,
body.search .news-list-wrap,
body.blog:not(.nsn-custom-front) .news-list-wrap,
body.archive .post-inner-wrapper,
body.category .post-inner-wrapper {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 18px !important;
}

/* Grid mode (default from nm_archive_layout=grid) */
body.nsn-archive-grid .news-list-wrap,
body.nsn-archive-grid .post-inner-wrapper.news-list-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body.archive .news-list-wrap article.post,
body.category .news-list-wrap article.post,
body.search .news-list-wrap article.post,
body.blog:not(.nsn-custom-front) .news-list-wrap article.post {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  height: 100%;
}

body.archive .news-list-wrap article.post:hover,
body.category .news-list-wrap article.post:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11) !important;
}

/* List mode: horizontal cards */
body.nsn-archive-list .news-list-wrap,
body.nsn-archive-list .post-inner-wrapper.news-list-wrap {
  grid-template-columns: 1fr !important;
}

body.nsn-archive-list .news-list-wrap article.post {
  flex-direction: row !important;
  align-items: stretch !important;
}

body.nsn-archive-list .news-list-wrap article.post .post-thumb-wrap {
  width: 280px !important;
  min-width: 240px !important;
  max-width: 34% !important;
  margin: 0 !important;
  flex: 0 0 280px;
}

/* Thumbnail */
body.archive .post-thumb-wrap,
body.category .post-thumb-wrap,
body.search .post-thumb-wrap {
  position: relative !important;
  margin: 0 !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

body.nsn-archive-list .post-thumb-wrap {
  aspect-ratio: auto;
  min-height: 100%;
}

body.archive .post-thumb-wrap a,
body.category .post-thumb-wrap a {
  display: block;
  height: 100%;
}

body.archive .post-thumb-wrap img,
body.category .post-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

body.archive article.post:hover .post-thumb-wrap img {
  transform: scale(1.04);
}

/* Category pills on image */
body.archive .post-thumb-wrap .post-categories,
body.category .post-thumb-wrap .post-categories {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  z-index: 2;
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.archive .post-categories .cat-item,
body.category .post-categories .cat-item {
  margin: 0 !important;
  background: #0ea5e9 !important;
  border-radius: 999px !important;
  overflow: hidden;
}

body.archive .post-categories .cat-item a,
body.category .post-categories .cat-item a {
  display: inline-block !important;
  padding: 4px 10px !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Content block */
body.archive .post-element,
body.category .post-element,
body.search .post-element {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 14px 16px 16px !important;
  flex: 1 1 auto;
  min-width: 0;
}

body.archive .post-title,
body.category .post-title,
body.search .post-title {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

body.archive .post-title a,
body.category .post-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

body.archive .post-title a:hover,
body.category .post-title a:hover {
  color: #0284c7 !important;
}

/* Meta row */
body.archive .post-meta,
body.category .post-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  margin: 0 !important;
  font-size: 0.78rem !important;
  color: #64748b !important;
}

body.archive .post-meta a,
body.category .post-meta a {
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

body.archive .post-meta .author_name {
  color: #0f172a !important;
}

body.archive .post-meta .updated {
  display: none !important; /* hide duplicate updated time */
}

body.archive .post-meta .read-time {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
}

/* Excerpt */
body.archive .post-excerpt,
body.category .post-excerpt {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  flex: 1 1 auto;
}

body.archive .post-excerpt p,
body.category .post-excerpt p {
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more button */
body.archive .post-link-button,
body.category .post-link-button,
body.search .post-link-button,
body.blog:not(.nsn-custom-front) .post-link-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  align-self: flex-start !important;
  margin-top: 6px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.archive .post-link-button:hover,
body.category .post-link-button:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #fff !important;
}

body.archive .post-link-button i {
  font-size: 0.75rem;
}

/* Sidebar polish */
body.archive .secondary-sidebar,
body.category #secondary,
body.archive .primary-sidebar,
body.category .right-sidebar .secondary-sidebar {
  /* theme varies */
}

body.archive .widget,
body.category .widget {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04) !important;
}

body.archive .widget-title,
body.category .widget-title {
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #0f172a !important;
  border-left: 3px solid #0284c7 !important;
  padding-left: 10px !important;
  margin: 0 0 12px !important;
}

/* Pagination */
body.archive .navigation.pagination,
body.category .navigation.pagination,
body.archive nav.navigation,
body.category .nav-links {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 28px 0 8px !important;
  flex-wrap: wrap;
}

body.archive .page-numbers,
body.category .page-numbers,
body.archive .nav-links a,
body.archive .nav-links span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.archive .page-numbers.current,
body.category .page-numbers.current,
body.archive .nav-links span.current {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #fff !important;
}

/* ---- Single post polish ---- */
body.single-post .site-main,
body.page .site-main {
  background: transparent;
}

body.single-post .primary-content,
body.single-post article.post {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 22px 24px 28px;
  margin-bottom: 20px;
}

body.single-post .entry-title,
body.single-post h1.post-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

body.single-post .entry-content,
body.single-post .post-content {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
}

body.single-post .entry-content img,
body.single-post .post-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin-top: 1.6em !important;
}

body.single-post .entry-content a {
  color: #0284c7;
}

/* Breadcrumb spacing with archive */
.nsn-breadcrumb {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body.nsn-archive-grid .news-list-wrap,
  body.nsn-archive-grid .post-inner-wrapper.news-list-wrap {
    grid-template-columns: 1fr !important;
  }

  body.nsn-archive-list .news-list-wrap article.post {
    flex-direction: column !important;
  }

  body.nsn-archive-list .news-list-wrap article.post .post-thumb-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  body.single-post .primary-content,
  body.single-post article.post {
    padding: 16px 14px 20px;
    border-radius: 12px;
  }
}



/* --------------------------------------------------------------------------
   NsN single article polish — v1.9.0
   -------------------------------------------------------------------------- */
body.single-post .primary-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.single-post .newsmatic-container .row {
  align-items: stretch;
}

body.single-post .primary-content {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

body.single-post .post-inner-wrapper,
body.single-post .post-inner-wrapper > article.post {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

body.single-post .post-inner-wrapper > article.post {
  margin: 0 auto 24px;
  padding: clamp(20px, 3vw, 36px) clamp(18px, 4vw, 46px) 34px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.065);
}

body.single-post .entry-header {
  margin-bottom: 22px;
}

body.single-post .entry-title,
body.single-post h1.post-title {
  max-width: 820px;
  margin-bottom: 14px !important;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.04em !important;
}

body.single-post .entry-meta {
  color: #64748b;
  font-size: 0.82rem;
}

body.single-post .entry-content {
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-size: clamp(1rem, 1.15vw, 1.075rem) !important;
  line-height: 1.82 !important;
  color: #334155 !important;
}

body.single-post .entry-content > p:first-of-type {
  font-size: 1.1em;
  line-height: 1.72;
  color: #1e293b;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  scroll-margin-top: 90px;
  color: #0f172a !important;
}

body.single-post .entry-content h2 {
  margin: 2.1em 0 0.7em !important;
  font-size: clamp(1.28rem, 2.2vw, 1.62rem) !important;
  line-height: 1.28 !important;
}

body.single-post .entry-content h3 {
  margin: 1.5em 0 0.55em !important;
  font-size: 1.12rem !important;
}

body.single-post .entry-content p,
body.single-post .entry-content ul,
body.single-post .entry-content ol,
body.single-post .entry-content blockquote {
  margin-bottom: 1.05em;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  padding-left: 1.25rem;
}

body.single-post .entry-content blockquote {
  margin-left: 0;
  padding: 14px 18px;
  border-left: 3px solid #38bdf8;
  border-radius: 0 10px 10px 0;
  background: #f0f9ff;
  color: #475569;
}

body.single-post .entry-content img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
}

body.single-post .entry-content figure {
  margin: 1.7rem auto !important;
}

body.single-post .entry-content figcaption {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

body.single-post .nsn-related-posts {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

body.single-post .entry-content,
body.single-post .entry-content * {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.single-post .entry-content pre,
body.single-post .entry-content code {
  max-width: 100%;
  overflow-x: auto;
}

body.single-post #nsn-weather-widget,
body.single-post .nsn-weather-widget,
body.single-post .single-related-posts-section-wrap,
body.single-post aside#secondary:has(#nsn-weather-widget) {
  display: none !important;
}

@media (max-width: 900px) {
  body.single-post .post-inner-wrapper > article.post {
    width: 100%;
    max-width: none;
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  body.single-post .post-inner-wrapper > article.post {
    padding: 17px 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  body.single-post .entry-content {
    font-size: 1rem !important;
    line-height: 1.74 !important;
  }
}


/* --------------------------------------------------------------------------
   NsN single post width lock — v1.9.3
   The parent theme keeps `.primary-content` at 70% even when both sidebars
   are hidden. This direct-child rule deliberately wins at desktop and mobile.
   -------------------------------------------------------------------------- */
body.single-post.wp-theme-newsmatic #primary.site-main > .newsmatic-container > .row > .primary-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.single-post.wp-theme-newsmatic #primary.site-main > .newsmatic-container > .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 900px) {
  body.single-post.wp-theme-newsmatic #primary.site-main > .newsmatic-container > .row > .primary-content {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }
}


/* --------------------------------------------------------------------------
   NsN archive/category cards — v1.9.4
   Reset Newsmatic's horizontal thumbnail flex rules. The previous 35% figure
   basis plus percentage padding made the category pill cover the card copy.
   -------------------------------------------------------------------------- */
body.archive:not(.nsn-archive-list) .news-list-wrap article.post,
body.category:not(.nsn-archive-list) .news-list-wrap article.post,
body.search:not(.nsn-archive-list) .news-list-wrap article.post {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap > a,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap > a,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-categories,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-categories,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-categories {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 3 !important;
  list-style: none !important;
}

/* Show only 1st category pill to keep image completely clear and recognizable */
body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-categories li:nth-child(n+2),
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-categories li:nth-child(n+2),
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-categories li:nth-child(n+2) {
  display: none !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-categories .cat-item,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-categories .cat-item,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-categories .cat-item {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-categories a,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-categories a,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-categories a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  background: rgba(2, 132, 199, 0.88) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
  max-width: 140px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
}

body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-element,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-element,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-element {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  body.nsn-archive-grid .news-list-wrap,
  body.nsn-archive-grid .post-inner-wrapper.news-list-wrap {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap,
  body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap,
  body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap {
    aspect-ratio: 16 / 9 !important;
  }
}


/* v1.9.5: Newsmatic centers archive images with translate(-50%, -50%).
   The card wrapper is already the positioning context, so that transform
   would move a full-size image outside the card. */
body.archive:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img,
body.category:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img,
body.search:not(.nsn-archive-list) .news-list-wrap article.post .post-thumb-wrap img {
  transform: none !important;
  translate: none !important;
  inset: 0 !important;
  object-position: center center !important;
}


/* --------------------------------------------------------------------------
   NsN category weather panel — v1.9.6
   Keep the sidebar weather summary in normal flow. Newsmatic's generic
   heading/flex rules can otherwise pull the location and condition onto the
   same line at narrower category widths.
   -------------------------------------------------------------------------- */
body.archive #nsn-weather-widget,
body.category #nsn-weather-widget,
body.search #nsn-weather-widget,
body.blog:not(.nsn-custom-front) #nsn-weather-widget,
body.archive .nsn-weather-widget,
body.category .nsn-weather-widget,
body.search .nsn-weather-widget,
body.blog:not(.nsn-custom-front) .nsn-weather-widget {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.archive #nsn-weather-widget .nsn-weather-head,
body.category #nsn-weather-widget .nsn-weather-head,
body.search #nsn-weather-widget .nsn-weather-head,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-head,
body.archive .nsn-weather-widget .nsn-weather-head,
body.category .nsn-weather-widget .nsn-weather-head,
body.search .nsn-weather-widget .nsn-weather-head,
body.blog:not(.nsn-custom-front) .nsn-weather-widget .nsn-weather-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 43px !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-head > div,
body.category #nsn-weather-widget .nsn-weather-head > div,
body.search #nsn-weather-widget .nsn-weather-head > div,
body.blog:not(.nsn-custom-front) .nsn-weather-widget .nsn-weather-head > div,
body.archive .nsn-weather-widget .nsn-weather-head > div,
body.category .nsn-weather-widget .nsn-weather-head > div,
body.search .nsn-weather-widget .nsn-weather-head > div {
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  float: none !important;
  overflow: hidden !important;
}

body.archive #nsn-weather-widget .nsn-weather-kicker,
body.category #nsn-weather-widget .nsn-weather-kicker,
body.search #nsn-weather-widget .nsn-weather-kicker,
body.archive .nsn-weather-widget .nsn-weather-kicker,
body.category .nsn-weather-widget .nsn-weather-kicker,
body.search .nsn-weather-widget .nsn-weather-kicker {
  display: block !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.archive #nsn-weather-widget .nsn-weather-title,
body.category #nsn-weather-widget .nsn-weather-title,
body.search #nsn-weather-widget .nsn-weather-title,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-title,
body.archive .nsn-weather-widget .nsn-weather-title,
body.category .nsn-weather-widget .nsn-weather-title,
body.search .nsn-weather-widget .nsn-weather-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px 0 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-icon,
body.category #nsn-weather-widget .nsn-weather-icon,
body.search #nsn-weather-widget .nsn-weather-icon,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-icon,
body.archive .nsn-weather-widget .nsn-weather-icon,
body.category .nsn-weather-widget .nsn-weather-icon,
body.search .nsn-weather-widget .nsn-weather-icon {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-main,
body.category #nsn-weather-widget .nsn-weather-main,
body.search #nsn-weather-widget .nsn-weather-main,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-main,
body.archive .nsn-weather-widget .nsn-weather-main,
body.category .nsn-weather-widget .nsn-weather-main,
body.search .nsn-weather-widget .nsn-weather-main {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-temp,
body.category #nsn-weather-widget .nsn-weather-temp,
body.search #nsn-weather-widget .nsn-weather-temp,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-temp,
body.archive .nsn-weather-widget .nsn-weather-temp,
body.category .nsn-weather-widget .nsn-weather-temp,
body.search .nsn-weather-widget .nsn-weather-temp {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-summary,
body.category #nsn-weather-widget .nsn-weather-summary,
body.search #nsn-weather-widget .nsn-weather-summary,
body.blog:not(.nsn-custom-front) #nsn-weather-widget .nsn-weather-summary,
body.archive .nsn-weather-widget .nsn-weather-summary,
body.category .nsn-weather-widget .nsn-weather-summary,
body.search .nsn-weather-widget .nsn-weather-summary {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: static !important;
  float: none !important;
}

body.archive #nsn-weather-widget .nsn-weather-summary strong,
body.archive #nsn-weather-widget .nsn-weather-summary span,
body.category #nsn-weather-widget .nsn-weather-summary strong,
body.category #nsn-weather-widget .nsn-weather-summary span,
body.search #nsn-weather-widget .nsn-weather-summary strong,
body.search #nsn-weather-widget .nsn-weather-summary span,
body.archive .nsn-weather-widget .nsn-weather-summary strong,
body.archive .nsn-weather-widget .nsn-weather-summary span,
body.category .nsn-weather-widget .nsn-weather-summary strong,
body.category .nsn-weather-widget .nsn-weather-summary span,
body.search .nsn-weather-widget .nsn-weather-summary strong,
body.search .nsn-weather-widget .nsn-weather-summary span {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: static !important;
  float: none !important;
}

@media (max-width: 900px) {
  body.archive #nsn-weather-widget,
  body.category #nsn-weather-widget,
  body.search #nsn-weather-widget,
  body.archive .nsn-weather-widget,
  body.category .nsn-weather-widget,
  body.search .nsn-weather-widget {
    width: 100% !important;
  }
}

@media (max-width: 360px) {
  body.archive #nsn-weather-widget .nsn-weather-head,
  body.category #nsn-weather-widget .nsn-weather-head,
  body.search #nsn-weather-widget .nsn-weather-head,
  body.archive .nsn-weather-widget .nsn-weather-head,
  body.category .nsn-weather-widget .nsn-weather-head,
  body.search .nsn-weather-widget .nsn-weather-head {
    gap: 6px !important;
  }

  body.archive #nsn-weather-widget .nsn-weather-main,
  body.category #nsn-weather-widget .nsn-weather-main,
  body.search #nsn-weather-widget .nsn-weather-main,
  body.archive .nsn-weather-widget .nsn-weather-main,
  body.category .nsn-weather-widget .nsn-weather-main,
  body.search .nsn-weather-widget .nsn-weather-main {
    gap: 8px !important;
  }
}

/* The floating weather badge is intentionally untouched. */
#lpu_wx_toggle_badge,
#lpu_weather_floating_widget {
  display: block;
}

/* End v1.9.6 */


/* =======================================================================
   v1.9.8 — Weather panel: deterministic spacing & no overlap
   Works across archive, category, search, single post, and blog.
   ======================================================================= */
body.nsn-tech #nsn-weather-widget,
#nsn-weather-widget {
  box-sizing: border-box !important;
  margin: 0 0 20px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-head,
#nsn-weather-widget .nsn-weather-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 10px 0 !important;
  margin: 0 0 14px 0 !important;
  position: relative !important;
  border-bottom: 1px solid rgba(19, 99, 165, 0.12) !important;
  overflow: visible !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-head > div,
#nsn-weather-widget .nsn-weather-head > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  float: none !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-kicker,
#nsn-weather-widget .nsn-weather-kicker {
  display: block !important;
  margin: 0 0 4px 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--w2, #0284c7) !important;
  line-height: 1.2 !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-title,
#nsn-weather-widget .nsn-weather-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--w1, #0b2447) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  position: static !important;
  float: none !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-icon,
#nsn-weather-widget .nsn-weather-icon {
  flex: 0 0 auto !important;
  display: block !important;
  font-size: 30px !important;
  line-height: 1 !important;
  position: static !important;
  margin: 0 !important;
  float: none !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-status,
#nsn-weather-widget .nsn-weather-status {
  display: none !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-main,
#nsn-weather-widget .nsn-weather-main {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  clear: both !important;
  position: static !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-temp,
#nsn-weather-widget .nsn-weather-temp {
  font-size: 44px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  color: var(--w1, #0b2447) !important;
  flex: 0 0 auto !important;
  position: static !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-summary,
#nsn-weather-widget .nsn-weather-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-summary strong,
#nsn-weather-widget .nsn-weather-summary strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--w1, #0b2447) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

body.nsn-tech #nsn-weather-widget .nsn-weather-summary span,
#nsn-weather-widget .nsn-weather-summary span {
  display: block !important;
  font-size: 12px !important;
  color: #52708d !important;
  margin: 0 !important;
}

/* =======================================================================
   Hide Author Name across all templates when author setting is off
   ======================================================================= */
body.nsn-hide-author .author,
body.nsn-hide-author .author_name,
body.nsn-hide-author .byline,
body.nsn-hide-author .entry-meta .byline,
body.nsn-hide-author .post-meta .author_name,
body.nsn-hide-author .post-meta .author,
body.nsn-hide-author .post-meta .byline,
body.nsn-hide-author .bmm-post-meta .author,
body.nsn-hide-author article .byline,
body.nsn-hide-author .post-meta-wrapper .byline {
  display: none !important;
}

/* Single Post Featured Image Polish */
body.single .post-thumbnail,
body.single .entry-thumbnail {
  margin: 14px 0 24px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}

body.single .post-thumbnail img,
body.single .entry-thumbnail img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  display: block !important;
}

/* End v1.9.8 */
/* End of file */
