/* Blog content shown inside another site's theme (WordPress plugin). Header, footer, fonts and heading
   styles come from the host theme; this file only lays out the blog. Colors follow the theme's primary
   color when it exposes one, or --nab-accent set by the plugin. */
.nab {
  --_accent: var(--nab-accent, var(--wd-primary-color, var(--wp--preset--color--primary, var(--e-global-color-primary, #1f1f1f))));
  --_text: var(--nab-text, #2b2b2b);
  --_muted: var(--nab-muted, #6f6f6f);
  --_line: rgba(0, 0, 0, 0.09);
  --_soft: color-mix(in srgb, var(--_accent) 7%, #fff);
  --_radius: 16px;
  --_sticky: var(--nab-sticky-top, 110px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 0 56px;
  color: var(--_text);
  box-sizing: border-box;
  flex: 1 1 100%;
}
.nab *,
.nab *::before,
.nab *::after {
  box-sizing: border-box;
}
.nab a {
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.nab ul,
.nab ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nab img {
  max-width: 100%;
  height: auto;
}
.nab-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared bits ---------- */
.nab-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--_accent);
}
.nab .nab-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--_accent);
}
.nab .nab-cat:hover {
  opacity: 0.75;
}
.nab .nab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--_accent);
  border-radius: 999px;
  background: var(--_accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.nab .nab-btn:hover {
  background: color-mix(in srgb, var(--_accent) 85%, #000);
  color: #fff;
}
.nab .nab-btn svg {
  transition: transform 0.2s;
}
.nab .nab-btn:hover svg {
  transform: translateX(3px);
}
.nab .nab-btn-outline {
  background: transparent;
  color: var(--_accent);
}
.nab .nab-btn-outline:hover {
  background: var(--_accent);
  color: #fff;
}
.nab .nab-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.nab-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--_accent);
  color: #fff;
  font-weight: 600;
}
.nab-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

/* ---------- Breadcrumbs ---------- */
.nab-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--_muted);
}
.nab-crumbs li {
  margin: 0;
}
.nab-crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.nab .nab-crumbs a {
  color: var(--_muted);
}
.nab .nab-crumbs a:hover {
  color: var(--_accent);
}
.nab-crumbs [aria-current] {
  color: var(--_text);
}

/* ---------- Listing header: title and intro on the left, search on the right ---------- */
.nab-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin: 12px 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--_line);
}
.nab-hero-text {
  flex: 1 1 420px;
  min-width: 0;
}
.nab-hero .nab-crumbs {
  margin-bottom: 10px;
}
.nab-hero .nab-crumbs ol {
  justify-content: flex-start;
}
.nab-hero .nab-avatar {
  margin-bottom: 10px;
}
.nab-hero .nab-eyebrow {
  margin-bottom: 4px;
}
.nab .nab-title {
  margin: 0 0 8px;
  max-width: 900px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.nab-lead {
  max-width: 640px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--_muted);
}
.nab-search {
  position: relative;
  display: flex;
  flex: 0 1 400px;
  max-width: 400px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--_line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}
.nab-search-icon {
  display: grid;
  place-items: center;
  padding: 0 4px 0 14px;
  color: var(--_muted);
}
.nab .nab-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--_text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.nab .nab-search button {
  height: 40px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--_accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}
.nab-search:focus-within {
  border-color: var(--_accent);
}

/* ---------- Category chips ---------- */
.nab-chips {
  margin: 0 0 32px;
}
.nab-chips ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.nab-chips li {
  margin: 0;
}
.nab .nab-chips a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--_line);
  border-radius: 999px;
  color: var(--_text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.nab .nab-chips a:hover {
  border-color: var(--_accent);
  color: var(--_accent);
}
.nab .nab-chips a.is-active {
  border-color: var(--_accent);
  background: var(--_accent);
  color: #fff;
}

/* ---------- Cards ---------- */
.nab-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 628;
  border-radius: var(--_radius);
  background: var(--_soft);
}
.nab-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.nab-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--_accent);
  font-weight: 600;
  text-align: center;
}
.nab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
.nab-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.nab-card:hover .nab-card-media img,
.nab-featured:hover .nab-card-media img {
  transform: scale(1.04);
}
.nab-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 16px;
}
.nab .nab-card-title {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}
.nab .nab-card-title a,
.nab .nab-featured-title a {
  color: inherit;
}
.nab .nab-card-title a:hover,
.nab .nab-featured-title a:hover {
  color: var(--_accent);
}
.nab-card-excerpt {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--_muted);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.nab .nab-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--_text);
  font-size: 14px;
  font-weight: 600;
}
.nab .nab-readmore:hover {
  color: var(--_accent);
}
.nab .nab-readmore svg {
  transition: transform 0.2s;
}
.nab .nab-readmore:hover svg {
  transform: translateX(4px);
}

/* ---------- Featured post ---------- */
.nab-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  margin: 0 0 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--_line);
}
.nab-featured .nab-card-media {
  border-radius: calc(var(--_radius) + 4px);
}
.nab-featured-body .nab-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--_muted);
}
.nab .nab-featured-title {
  margin: 8px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}
.nab-featured-body p {
  margin: 0 0 22px;
  color: var(--_muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Load more / empty ---------- */
.nab-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}
.nab-loadmore p {
  margin: 0;
  color: #b42318;
  font-size: 14px;
}
.nab-empty {
  padding: 60px 20px;
  text-align: center;
}
.nab-empty p {
  margin: 0 0 24px;
  color: var(--_muted);
}

/* ---------- Article ---------- */
.nab-progress {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.nab-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--_accent);
}
/* Article header sits at the top of the article column, beside the sidebar. */
.nab-article-head {
  margin: 0 0 24px;
}
.nab-article-head .nab-crumbs {
  margin-bottom: 12px;
}
.nab-article-head .nab-crumbs ol {
  justify-content: flex-start;
}
.nab-article-head .nab-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
}
.nab-article-head .nab-lead {
  margin: 0 0 4px;
  font-size: 17px;
}
.nab-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
  color: var(--_muted);
  font-size: 14px;
}
.nab-byline .nab-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.nab .nab-byline a {
  color: var(--_text);
  font-weight: 600;
}
.nab .nab-byline .nab-cat {
  color: var(--_accent);
  font-size: 12px;
}
.nab-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.nab-cover {
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: calc(var(--_radius) + 6px);
  background: var(--_soft);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.nab-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Article column on the left, sidebar (contents, call to action, latest, categories) on the right. */
.nab-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 48px;
  margin-top: 12px;
}
.nab-article-main {
  min-width: 0;
}
.nab-sidebar {
  position: sticky;
  top: var(--_sticky);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nab-widget {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--_line);
  border-radius: calc(var(--_radius) + 4px);
  background: #fff;
}
.nab .nab-widget-title {
  display: block;
  margin: 0 0 16px;
  color: var(--_text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

/* Table of contents: the section being read is highlighted. */
.nab-toc summary {
  cursor: pointer;
  list-style: none;
}
.nab-toc summary::-webkit-details-marker {
  display: none;
}
.nab-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 46vh;
  margin: 0 -6px 0 0 !important;
  padding: 0 6px 0 0 !important;
  overflow: auto;
  scrollbar-width: thin;
}
.nab-toc li {
  margin: 0;
}
.nab .nab-toc a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 10px;
  color: var(--_muted);
  font-size: 14.5px;
  line-height: 1.4;
}
.nab .nab-toc .nab-lvl3 a {
  padding-left: 26px;
  font-size: 13.5px;
}
.nab .nab-toc a:hover,
.nab .nab-toc a.is-active {
  border-left-color: var(--_accent);
  background: color-mix(in srgb, var(--_accent) 11%, #fff);
  color: var(--_accent);
}
.nab .nab-toc a.is-active {
  font-weight: 600;
}

/* Call to action box */
.nab-cta {
  border: 0;
  background: var(--_accent);
  color: #fff;
}
.nab .nab-cta .nab-widget-title {
  color: #fff;
  font-size: 22px;
}
.nab-cta p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}
.nab .nab-cta .nab-btn {
  border-color: #fff;
  background: #fff;
  color: var(--_accent);
}
.nab .nab-cta .nab-btn:hover {
  background: transparent;
  color: #fff;
}

/* Latest articles */
.nab-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nab-mini li {
  margin: 0;
}
.nab .nab-mini a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--_text);
}
.nab-mini img,
.nab-mini-ph {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--_soft);
}
.nab-mini span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.nab .nab-mini a:hover {
  color: var(--_accent);
}

/* Categories */
.nab-catlist li {
  margin: 0;
}
.nab .nab-catlist a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--_line);
  color: var(--_text);
  font-size: 15px;
}
.nab-catlist li:last-child a {
  border-bottom: 0;
}
.nab-catlist a span:last-child {
  min-width: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--_soft);
  color: var(--_muted);
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}
.nab .nab-catlist a:hover,
.nab .nab-catlist a.is-active {
  color: var(--_accent);
}

/* Article body: headings keep the theme's fonts and sizes; this sets rhythm and readability. */
.nab-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--_text);
  overflow-wrap: break-word;
}
.nab-content > :first-child {
  margin-top: 0;
}
.nab-content p {
  margin: 0 0 1.15em;
}
.nab .nab-content h2,
.nab .nab-content h3,
.nab .nab-content h4 {
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
  scroll-margin-top: var(--_sticky);
}
.nab-content a {
  color: var(--_accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nab-content a:hover {
  text-decoration-thickness: 2px;
}
.nab-content ul,
.nab-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.nab-content ul {
  list-style: disc;
}
.nab-content ol {
  list-style: decimal;
}
.nab-content li {
  margin: 0 0 0.5em;
  padding-left: 0.2em;
}
.nab-content li::marker {
  color: var(--_accent);
}
.nab-content img {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
.nab-content figure {
  margin: 2em 0;
}
.nab-content figcaption {
  margin-top: 10px;
  color: var(--_muted);
  font-size: 14px;
  text-align: center;
}
.nab-content blockquote {
  margin: 2em 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--_accent);
  font-size: 1.12em;
  font-style: italic;
}
.nab-content blockquote p:last-child {
  margin-bottom: 0;
}
.nab-content hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--_line);
}
.nab-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.nab-content th,
.nab-content td {
  padding: 12px 14px;
  border: 1px solid var(--_line);
  text-align: left;
  vertical-align: top;
}
.nab-content th {
  background: var(--_soft);
  font-weight: 600;
}
.nab-content pre {
  margin: 2em 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 12px;
  background: #1d1d1d;
  color: #f2f2f2;
  font-size: 14px;
}
.nab-content iframe,
.nab-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 2em 0;
  border: 0;
  border-radius: 12px;
}
.nab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px !important;
}
.nab-tags li {
  margin: 0;
}
.nab .nab-tags a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--_soft);
  color: var(--_text);
  font-size: 13px;
}
.nab .nab-tags a:hover {
  background: var(--_accent);
  color: #fff;
}
.nab-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--_line);
  border-bottom: 1px solid var(--_line);
}
.nab-share > span {
  margin-right: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nab .nab-share a,
.nab .nab-share button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--_line);
  border-radius: 50%;
  background: #fff;
  color: var(--_text);
  cursor: pointer;
}
.nab .nab-share a:hover,
.nab .nab-share button:hover,
.nab .nab-share button.is-done {
  border-color: var(--_accent);
  background: var(--_accent);
  color: #fff;
}
.nab-author {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  padding: 30px;
  border-radius: var(--_radius);
  background: var(--_soft);
}
.nab-author .nab-eyebrow {
  margin-bottom: 4px;
}
.nab .nab-author-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.nab .nab-author-name a {
  color: var(--_text);
}
.nab-author p {
  margin: 0;
  color: var(--_muted);
  font-size: 15px;
  line-height: 1.7;
}
.nab-related {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--_line);
}
.nab-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}
.nab-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}
.nab .nab-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--_accent);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nab-article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
  }
}
/* A sidebar taller than the window cannot stay in view, so it scrolls with the page. */
@media (max-height: 820px) {
  .nab-sidebar {
    position: static;
  }
  .nab-toc {
    position: sticky;
    z-index: 2;
    top: var(--_sticky);
  }
}
/* One column: the contents box comes before the article (collapsed), the other boxes after it. */
@media (max-width: 991px) {
  .nab-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  /* Header, cover, contents box, then the article body. */
  .nab-sidebar,
  .nab-article-main {
    display: contents;
  }
  .nab-article-layout > *,
  .nab-article-main > * {
    min-width: 0;
    max-width: 100%;
  }
  .nab-article-head {
    order: -3;
  }
  .nab-cover {
    order: -2;
  }
  .nab-toc {
    position: static;
    order: -1;
    margin-bottom: 32px;
    padding: 18px 22px;
  }
  .nab .nab-toc .nab-widget-title {
    margin: 0;
  }
  .nab .nab-toc[open] .nab-widget-title {
    margin-bottom: 14px;
  }
  .nab-toc .nab-widget-title::after {
    content: '+';
    float: right;
    color: var(--_accent);
    font-weight: 400;
  }
  .nab-toc[open] .nab-widget-title::after {
    content: '−';
  }
  .nab-toc ol {
    max-height: none;
  }
  .nab-cta,
  .nab-latest,
  .nab-cats {
    margin-top: 28px;
  }
}
@media (max-width: 1024px) {
  .nab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nab-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .nab {
    padding-bottom: 48px;
  }
  .nab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nab-hero {
    margin-top: 16px;
  }
  .nab-search {
    flex-basis: 100%;
    max-width: none;
  }
  .nab-chips ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .nab-chips a {
    white-space: nowrap;
  }
  .nab-featured {
    margin-bottom: 44px;
    padding-bottom: 44px;
  }
  .nab-article-head {
    margin-top: 4px;
  }
  .nab-cover {
    margin-bottom: 30px;
    border-radius: var(--_radius);
  }
  .nab-article-layout {
    margin-top: 30px;
  }
  .nab-content {
    font-size: 16.5px;
  }
  .nab-author {
    flex-direction: column;
    padding: 24px;
  }
  .nab-search-icon {
    display: none;
  }
  .nab .nab-search button {
    padding: 0 18px;
  }
}
