:root {
  --bg: #fffbf8;
  --surface1: #ffffff;
  --surface2: #f7f2ee;
  --text: #2d3748;
  --post-body-text: rgb(55, 65, 81);
  --muted: #64748b;
  --border: #e6ded8;
  --accent: #ff7a59;
  --accent-hover: #e66a4b;
  --shadow-soft: 0 12px 30px rgba(45, 55, 72, 0.07);
  --shadow-card: 0 18px 40px rgba(45, 55, 72, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nv-site-shell {
  min-height: 100vh;
}

.nv-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.nv-header-shell {
  width: 100%;
  max-width: 1280px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 auto;
}

.nv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nv-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nv-logo,
.nv-logo-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.nv-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nv-logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nv-logo-title {
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
}

.nv-logo-subtitle {
  margin-top: 0.25rem;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nv-desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nv-nav-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s ease;
}

.nv-nav-link:hover,
.nv-nav-link.is-active {
  color: var(--text);
}

.nv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nv-btn {
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  padding: 0.72rem 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nv-btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(255, 122, 89, 0.24);
}

.nv-btn-primary:hover {
  background: var(--accent-hover);
}

.nv-btn-secondary {
  background: var(--surface2);
  border-color: var(--border);
}

.nv-btn-secondary:hover {
  border-color: rgba(255, 122, 89, 0.55);
  background: rgba(255, 122, 89, 0.12);
}

.nv-btn-ghost {
  background: transparent;
  color: var(--text);
}

.nv-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nv-hide-sm,
.nv-hide-xl {
  display: none;
}

.nv-mobile-toggle,
.nv-mobile-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}

.nv-mobile-icon {
  width: 20px;
  height: 20px;
}

.nv-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 70;
}

.nv-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  background: var(--surface1);
  border-left: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.nv-mobile-drawer.is-open {
  transform: translateX(0);
}

.nv-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
}

.nv-mobile-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nv-mobile-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}

.nv-mobile-link {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-size: 20px;
  font-weight: 400;
}

.nv-mobile-link.is-active {
  border-color: rgba(255, 122, 89, 0.5);
}

.nv-mobile-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.nv-mobile-cta {
  width: 100%;
  font-size: 18px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nv-main {
  padding: 2.5rem 0 3rem;
}

.nv-hero {
  margin-bottom: 2rem;
}

.nv-kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 400;
}

.nv-hero h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.1;
}

.nv-lead {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 72ch;
}

.nv-search {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nv-search input {
  flex: 1 1 240px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 15px;
  background: var(--surface1);
}

.nv-search button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 1rem;
  font-weight: 400;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.nv-category-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface1);
  padding: 0.36rem 0.74rem;
  font-size: 13px;
  color: var(--text);
}

.nv-chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.nv-post-grid-wrap {
  margin-bottom: 3rem;
}

.nv-post-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.nv-post-card {
  background: var(--surface1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.nv-post-card-link {
  display: block;
}

.nv-post-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.nv-post-body {
  padding: 1rem 1rem 1.2rem;
}

.nv-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.nv-post-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.nv-post-meta a:hover {
  color: var(--text);
}

.nv-post-body h2 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.nv-post-body p {
  margin: 0;
  color: var(--post-body-text);
}

.nv-read-more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 400;
  font-size: 14px;
}

.nv-pagination {
  margin-top: 1.4rem;
}

.nv-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nv-pagination .page-numbers {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  background: var(--surface1);
  font-size: 13px;
}

.nv-pagination .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nv-empty-state {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface1);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.nv-empty-state h1,
.nv-empty-state h2 {
  margin: 0;
}

.nv-empty-state p {
  color: var(--text);
}

.nv-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.nv-breadcrumbs {
  margin-bottom: 0.8rem;
  color: var(--muted);
  min-width: 0;
}

.nv-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.nv-breadcrumbs-list-desktop {
  display: none;
}

.nv-breadcrumbs-list-mobile {
  display: flex;
}

.nv-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.35;
}

.nv-breadcrumbs-item + .nv-breadcrumbs-item::before {
  content: "›";
  margin: 0 0.5rem;
  color: var(--muted);
  flex-shrink: 0;
}

.nv-breadcrumbs-item a,
.nv-breadcrumbs-item span {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.nv-breadcrumbs-list-mobile .nv-breadcrumbs-item a,
.nv-breadcrumbs-list-mobile .nv-breadcrumbs-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-breadcrumbs-list-mobile .nv-breadcrumbs-item:last-child {
  flex: 1 1 auto;
}

.nv-breadcrumbs-item [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.nv-breadcrumbs-item-ellipsis {
  flex: 0 0 auto;
}

.nv-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nv-article {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface1);
  box-shadow: var(--shadow-card);
  min-width: 0;
  overflow-x: hidden;
}

.nv-article-header {
  padding: 1.25rem 1.2rem 0.8rem;
}

.nv-article-header.is-after-thumb {
  padding-top: 1rem;
}

.nv-article-header h1 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.nv-article-thumb img {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.nv-article-content {
  padding: 1rem 1.2rem 1.6rem;
  color: var(--post-body-text);
  min-width: 0;
  overflow-x: hidden;
}

.nv-article-content > * {
  min-width: 0;
  max-width: 100%;
}

.nv-article-content p,
.nv-article-content li,
.nv-article-content blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-article-content img,
.nv-article-content picture,
.nv-article-content figure,
.nv-article-content .wp-block-image,
.nv-article-content .wp-caption {
  max-width: 100% !important;
}

.nv-article-content figure,
.nv-article-content .wp-block-image,
.nv-article-content .wp-caption {
  margin: 1rem 0 !important;
}

.nv-article-content img {
  height: auto !important;
  display: block;
}

.nv-article-content figure[style],
.nv-article-content img[style],
.nv-article-content .wp-caption[style],
.nv-article-content .wp-block-image[style] {
  max-width: 100% !important;
  height: auto !important;
}

.nv-article-content figure.wp-caption,
.nv-article-content .wp-caption,
.nv-article-content .wp-caption[style] {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.nv-article-content .wp-caption img,
.nv-article-content figure.wp-caption img,
.nv-article-content .wp-block-image img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

.nv-article-content .wp-caption-text,
.nv-article-content figcaption,
.nv-article-content .wp-element-caption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-article-content iframe,
.nv-article-content video,
.nv-article-content object,
.nv-article-content embed {
  max-width: 100%;
}

.nv-article-content .wp-block-embed {
  max-width: 100%;
}

.nv-article-content .wp-block-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.nv-article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nv-article-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

.nv-article-content code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-article-content h2,
.nv-article-content h3,
.nv-article-content h4 {
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-article-content a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-author-bio {
  margin: 0 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.nv-author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.nv-author-bio-avatar.is-brand {
  background: #0e1116;
  object-fit: contain;
  padding: 0.5rem;
  border-color: rgba(15, 23, 42, 0.6);
}

.nv-author-bio-body {
  min-width: 0;
}

.nv-author-bio-body h2 {
  margin: 0;
  font-size: 1rem;
}

.nv-author-bio-name {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.nv-author-bio-name a {
  color: var(--text);
}

.nv-author-bio-role {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.nv-author-bio-text {
  margin: 0.55rem 0 0;
  color: var(--post-body-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nv-author-bio-link {
  margin: 0.65rem 0 0;
}

.nv-author-bio-link a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nv-related {
  margin-top: 1.4rem;
}

.nv-related h2 {
  margin: 0 0 0.7rem;
}

.nv-related-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.nv-related-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface1);
  padding: 1rem;
}

.nv-related-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.04rem;
}

.nv-related-card p {
  margin: 0;
  color: var(--text);
}

.nv-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2.6rem 0;
}

.nv-footer-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(140deg, #fff 0%, #f7f2ee 100%);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.nv-footer-cta-copy p {
  margin: 0.7rem 0 0.2rem;
}

.nv-footer-cta-copy small {
  color: var(--muted);
}

.nv-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nv-footer-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.2rem;
}

.nv-footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nv-footer-grid a,
.nv-footer-help {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 14px;
}

.nv-footer-bottom {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.nv-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .nv-hide-sm {
    display: inline-flex;
  }

  .nv-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nv-article-header {
    padding: 1rem 1rem 0.65rem;
  }

  .nv-article-header.is-after-thumb {
    padding-top: 0.85rem;
  }

  .nv-post-meta {
    font-size: clamp(12px, 3.4vw, 13px);
  }

  .nv-article-content {
    padding: 0.95rem 1rem 1.35rem;
  }

  .nv-author-bio {
    margin: 0 1rem 1.2rem;
    grid-template-columns: 1fr;
  }

  .nv-author-bio-avatar {
    width: 64px;
    height: 64px;
  }

  .nv-article-content .alignleft,
  .nv-article-content .alignright,
  .nv-article-content .aligncenter {
    float: none !important;
    display: block;
    margin: 1rem auto !important;
  }

  .nv-article-content .alignwide,
  .nv-article-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 768px) {
  .nv-header-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nv-breadcrumbs-list-mobile {
    display: none;
  }

  .nv-breadcrumbs-list-desktop {
    display: flex;
    flex-wrap: wrap;
  }

  .nv-breadcrumbs-list-desktop .nv-breadcrumbs-item a,
  .nv-breadcrumbs-list-desktop .nv-breadcrumbs-item span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (min-width: 1024px) {
  .nv-desktop-nav {
    display: flex;
  }

  .nv-mobile-toggle,
  .nv-mobile-overlay,
  .nv-mobile-drawer {
    display: none !important;
  }

  .nv-main {
    padding-top: 3rem;
  }

  .nv-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nv-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nv-footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.8rem;
  }

  .nv-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .nv-hide-xl {
    display: inline-flex;
  }
}
