/* NonHue editorial/search/404 layer. Loaded only on content discovery screens. */
.nh-breadcrumb { margin: 0 0 34px; font-size: .78rem; color: color-mix(in srgb, var(--nh-color-text) 58%, transparent); }
.nh-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nh-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.nh-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: color-mix(in srgb, var(--nh-color-text) 28%, transparent); }
.nh-breadcrumb a { color: inherit; text-decoration: none; }
.nh-breadcrumb a:hover { color: var(--nh-color-primary); }
.nh-breadcrumb [aria-current="page"] { overflow: hidden; max-width: 46ch; text-overflow: ellipsis; white-space: nowrap; }


/* Blog layout + native editorial sidebar. */
.nh-blog-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 40px;
  align-items: start;
}
.nh-blog-main { min-width: 0; }
.nh-blog-sidebar { width: 300px; min-width: 0; align-self: start; }
.nh-blog-sidebar__body { display: grid; gap: 18px; }
.nh-blog-sidebar-box {
  min-width: 0;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent);
  border-radius: var(--nh-radius-md);
  background: var(--nh-color-white);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--nh-color-text) 3.5%, transparent);
}
.nh-blog-sidebar-box__title {
  margin: 0 0 13px;
  font-family: var(--nh-font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}
.nh-blog-search { position: relative; display: flex; align-items: center; }
.nh-blog-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 42px 8px 11px;
  border: 1px solid color-mix(in srgb, var(--nh-color-text) 15%, transparent);
  border-radius: var(--nh-radius-sm);
  background: var(--nh-color-white);
  color: var(--nh-color-text);
  font: inherit;
  font-size: .8rem;
}
.nh-blog-search button {
  position: absolute;
  right: 5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nh-color-primary);
  cursor: pointer;
}
.nh-blog-search button .nh-icon { width: 17px; height: 17px; }
.nh-blog-category-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nh-blog-category-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: var(--nh-radius-sm);
  color: color-mix(in srgb, var(--nh-color-text) 82%, transparent);
  font-size: .8rem;
  text-decoration: none;
}
.nh-blog-category-list a:hover { color: var(--nh-color-primary); background: color-mix(in srgb, var(--nh-color-soft) 50%, var(--nh-color-white)); }
.nh-blog-category-list a.is-current { padding-left: 12px; background: color-mix(in srgb, var(--nh-color-primary) 8%, var(--nh-color-white)); color: var(--nh-color-primary); font-weight: 700; }
.nh-blog-category-list a.is-current::before { position: absolute; top: 7px; bottom: 7px; left: 0; width: 3px; border-radius: 4px; background: var(--nh-color-primary); content: ''; }
.nh-blog-category-list a span { color: color-mix(in srgb, var(--nh-color-text) 48%, transparent); font-size: .7rem; }
.nh-blog-recent-list { display: grid; gap: 12px; }
.nh-blog-recent-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.nh-blog-recent-item__image { overflow: hidden; display: block; aspect-ratio: 1; border-radius: var(--nh-radius-sm); background: color-mix(in srgb, var(--nh-color-soft) 48%, var(--nh-color-white)); }
.nh-blog-recent-item__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nh-blog-recent-item__content { display: grid; min-width: 0; gap: 4px; }
.nh-blog-recent-item__content strong { display: -webkit-box; overflow: hidden; font-size: .76rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nh-blog-recent-item:hover strong { color: var(--nh-color-primary); }
.nh-blog-recent-item__content time { color: color-mix(in srgb, var(--nh-color-text) 54%, transparent); font-size: .68rem; }

.nh-editorial-archive .nh-archive-header,
.nh-search-header { max-width: 820px; margin-bottom: 40px; }
.nh-archive-header .nh-eyebrow,
.nh-search-header .nh-eyebrow { margin: 0 0 8px; font-size: .74rem; }
.nh-archive-header h1,
.nh-search-header h1 { margin-bottom: 12px; }
.nh-archive-description { max-width: 740px; color: color-mix(in srgb, var(--nh-color-text) 75%, transparent); }
.nh-archive-description > *:first-child { margin-top: 0; }
.nh-archive-description > *:last-child { margin-bottom: 0; }

.nh-post-grid { align-items: stretch; gap: 22px; }
.nh-post-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid color-mix(in srgb, var(--nh-color-text) 8%, transparent); box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nh-post-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--nh-color-primary) 18%, transparent); box-shadow: var(--nh-shadow-sm); }
.nh-post-card .nh-card-media { aspect-ratio: 16 / 10; background: var(--nh-color-soft); }
.nh-post-card .nh-card-body { display: flex; flex: 1; flex-direction: column; }
.nh-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: color-mix(in srgb, var(--nh-color-text) 58%, transparent); font-size: .76rem; }
.nh-entry-meta a { color: var(--nh-color-primary); font-weight: 600; text-decoration: none; }
.nh-meta-separator { color: color-mix(in srgb, var(--nh-color-text) 28%, transparent); }
.nh-post-card .nh-card-title { margin: 11px 0 10px; font-size: clamp(1.22rem,2vw,1.52rem); line-height: 1.35; }
.nh-post-card .nh-card-title a:hover { color: var(--nh-color-primary); }
.nh-card-excerpt { margin: 0 0 18px; color: color-mix(in srgb, var(--nh-color-text) 72%, transparent); font-size: .9rem; }
.nh-card-readmore { display: inline-flex; align-items: center; width: fit-content; margin-top: auto; font-size: .82rem; font-weight: 700; text-decoration: none; }

.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 12%, transparent); border-radius: var(--nh-radius-sm); background: var(--nh-color-white); color: var(--nh-color-text); text-decoration: none; }
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current { border-color: var(--nh-color-primary); background: var(--nh-color-primary); color: var(--nh-color-white); }

.nh-single-post-shell { max-width: none; }
.nh-single-post { width: 100%; margin: 0; }
.nh-single-post__header { margin-bottom: 30px; text-align: left; }
.nh-single-post__header .nh-entry-meta { margin-bottom: 12px; }
.nh-single-post__header h1 { margin: 0; font-size: clamp(2.25rem,5vw,3.65rem); line-height: 1.16; }
.nh-single-post__media { overflow: hidden; margin: 0 0 38px; border-radius: var(--nh-radius-lg); background: var(--nh-color-soft); }
.nh-single-post__media img { display: block; width: 100%; height: auto; }
.nh-single-post__content { font-size: 1.03rem; line-height: 1.82; }
.nh-single-post__content > * { max-width: 760px; margin-inline: 0; }
.nh-single-post__content > .alignwide { max-width: 980px; }
.nh-single-post__content > .alignfull { width: min(100vw, 1200px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.nh-single-post__content p { margin-block: 0 1.35em; }
.nh-single-post__content h2,
.nh-single-post__content h3,
.nh-single-post__content h4 { margin-top: 1.5em; }
.nh-single-post__content img { border-radius: var(--nh-radius-md); }
.nh-single-post__content blockquote { margin-block: 2em; padding: 18px 24px; border-left: 4px solid var(--nh-color-primary); background: color-mix(in srgb, var(--nh-color-soft) 70%, transparent); border-radius: 0 var(--nh-radius-md) var(--nh-radius-md) 0; }
.nh-single-post__content table { width: 100%; border-collapse: collapse; }
.nh-single-post__content th,
.nh-single-post__content td { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 12%, transparent); text-align: left; }

.nh-post-share { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100%,760px); margin: 42px 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); }
.nh-post-share > span { font-size: .82rem; font-weight: 700; }
.nh-post-share__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nh-post-share__links a,
.nh-copy-link { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 13%, transparent); border-radius: var(--nh-radius-sm); background: var(--nh-color-white); color: var(--nh-color-text); font-family: var(--nh-font-body); font-size: .72rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.nh-post-share__links a:hover,
.nh-copy-link:hover { border-color: var(--nh-color-primary); color: var(--nh-color-primary); }

.nh-related-posts { margin-top: 72px; padding-top: 44px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); }
.nh-section-heading { margin-bottom: 24px; }
.nh-section-heading .nh-eyebrow { margin: 0 0 5px; font-size: .7rem; }
.nh-section-heading h2 { margin: 0; }

.nh-content-search { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; width: min(100%,680px); margin-top: 24px; padding: 7px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 13%, transparent); border-radius: var(--nh-radius-md); background: var(--nh-color-white); }
.nh-content-search > .nh-icon { margin-left: 8px; color: var(--nh-color-disabled); }
.nh-content-search input { width: 100%; min-width: 0; height: 44px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--nh-color-text); }
.nh-content-search .nh-button { min-height: 42px; }

.nh-search-section + .nh-search-section { margin-top: 58px; }
.nh-search-products { margin-top: 0 !important; }

.nh-empty-state { max-width: 720px; padding: 32px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 10%, transparent); border-radius: var(--nh-radius-lg); background: var(--nh-color-white); }
.nh-empty-state .nh-eyebrow { margin: 0 0 8px; font-size: .7rem; }
.nh-empty-state h2 { margin-bottom: 10px; }
.nh-empty-state > p:not(.nh-eyebrow) { color: color-mix(in srgb, var(--nh-color-text) 72%, transparent); }

.nh-404-shell { max-width: 1000px; }
.nh-404 { max-width: 760px; margin: 18px auto 0; padding: 56px 44px; border: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); border-radius: var(--nh-radius-lg); background: var(--nh-color-white); text-align: center; }
.nh-404-code { margin: 0 0 8px; color: color-mix(in srgb, var(--nh-color-primary) 88%, transparent); font-family: var(--nh-font-heading); font-size: clamp(4rem,14vw,8rem); font-weight: 700; line-height: .9; }
.nh-404 h1 { margin-bottom: 12px; }
.nh-404-description { max-width: 600px; margin: 0 auto 24px; color: color-mix(in srgb, var(--nh-color-text) 70%, transparent); }
.nh-404-actions { display: flex; justify-content: center; }
.nh-404-search { display: flex; justify-content: center; margin-top: 28px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--nh-color-text) 9%, transparent); }
.nh-404-search .nh-content-search { margin-top: 0; text-align: left; }


@media (max-width: 1024px) {
  .nh-blog-layout { grid-template-columns: 1fr; gap: 44px; }
  .nh-blog-sidebar { width: 100%; }
  .nh-blog-sidebar__body { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nh-blog-sidebar-box--search { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .nh-blog-sidebar__body { grid-template-columns: 1fr; }
  .nh-blog-sidebar-box--search { grid-column: auto; }
  .nh-breadcrumb { margin-bottom: 24px; }
  .nh-breadcrumb [aria-current="page"] { max-width: 28ch; }
  .nh-editorial-archive .nh-archive-header,
  .nh-search-header { margin-bottom: 28px; }
  .nh-single-post__header h1 { font-size: clamp(2rem,10vw,2.7rem); }
  .nh-single-post__media { margin-bottom: 28px; border-radius: var(--nh-radius-md); }
  .nh-single-post__content { font-size: 1rem; line-height: 1.75; }
  .nh-post-share { align-items: flex-start; flex-direction: column; }
  .nh-post-share__links { justify-content: flex-start; }
  .nh-related-posts { margin-top: 52px; padding-top: 34px; }
  .nh-content-search { grid-template-columns: auto minmax(0,1fr); }
  .nh-content-search .nh-button { grid-column: 1 / -1; width: 100%; }
  .nh-404 { padding: 38px 20px; }
}
