/**
 * Single post — Pinterest-first, Mediavine-ready layout.
 * Tokens only from DESIGN.md / main.css :root (--nm-*).
 */

/* —— Magazine split hero (image left / editorial panel right) —— */
.nm-post-hero {
  width: 100%;
  background: transparent;
  margin: 0;
  margin-block-start: 0 !important;
  padding: 0.75rem 1rem 0;
  box-sizing: border-box;
  overflow: visible;
}

.nm-post-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--nm-wide-max);
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: var(--nm-color-surface);
  border: 0;
  border-radius: var(--nm-radius-card);
  box-shadow: 0 16px 48px rgba(59, 26, 26, 0.12);
}

.nm-post-hero__media {
  order: 1;
  margin: 0;
  width: 100%;
  max-width: none;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--nm-radius-card) var(--nm-radius-card) 0 0;
}

.nm-post-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  order: 2;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--nm-color-surface);
  overflow: visible;
  border-radius: 0 0 var(--nm-radius-card) var(--nm-radius-card);
  z-index: 2;
}

.nm-post-hero__inner:not(:has(.nm-post-hero__media)) .nm-post-hero__content {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.nm-post-hero__breadcrumb {
  margin: 0 0 1.25rem;
  padding-right: 9.5rem;
}

.nm-post-hero__crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nm-color-text-muted);
}

.nm-post-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.nm-post-hero__crumb a {
  color: var(--nm-color-text-muted);
  text-decoration: none;
}

.nm-post-hero__crumb a:hover {
  color: var(--nm-color-primary);
  text-decoration: underline;
}

.nm-post-hero__crumb [aria-current="page"] {
  color: var(--nm-color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.nm-post-hero__crumb-sep {
  color: var(--nm-color-border);
  font-weight: 400;
}

.nm-post-hero__title {
  margin: 1.25rem 0;
  width: 100%;
  max-width: none;
  font-family: var(--nm-font-serif);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--nm-color-text);
}

.nm-post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  margin: 1.25rem 0 0;
  padding-top: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--nm-color-text-muted);
}

.nm-post-hero__meta-author,
.nm-post-hero__meta-date {
  display: inline-block;
}

.nm-post-hero__share {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
  z-index: 2;
}

/* Sticky bar covers Share/Follow below the Mediavine desktop breakpoint. */
@media (max-width: 1023.98px) {
  .nm-post-hero__share {
    display: none;
  }

  .nm-post-hero__breadcrumb {
    padding-right: 0;
  }
}

.nm-post-hero__follow {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

/* Guard: if wpautop still injects a <p>, keep the share row intact */
.nm-post-hero__share > p {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.nm-post-hero__share-label {
  display: none;
}

.nm-post-hero__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nm-color-surface-soft);
  color: var(--nm-color-text);
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nm-post-hero__share-btn--follow {
  width: auto;
  min-width: 48px;
  padding: 0 0.9rem 0 0.7rem;
  gap: 0.4rem;
  border-radius: 999px;
}

.nm-post-hero__share-btn--follow .nm-post-hero__share-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nm-post-hero__share-btn:hover {
  background: var(--nm-color-primary);
  color: var(--nm-color-on-primary);
  transform: scale(1.05);
}

.nm-post-hero__share-btn:focus-visible {
  outline: 2px solid var(--nm-color-focus);
  outline-offset: 2px;
}

.nm-post-hero__share-icon {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
}

.nm-post-hero__share-icon--pin {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-post-hero__share-icon--share {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* —— Share dropdown (hero) —— */
.nm-share-menu {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.nm-share-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.15rem 0;
  list-style: none;
  background: var(--nm-color-surface);
  border: 1px solid var(--nm-color-border);
  border-radius: var(--nm-radius-card);
  box-shadow: 0 12px 32px rgba(59, 26, 26, 0.12);
}

.nm-share-menu__panel[hidden] {
  display: none;
}

.nm-share-menu__item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  border-bottom: 1px solid rgba(196, 168, 130, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--nm-color-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 150ms ease, color 150ms ease;
}

.nm-share-menu__item:last-child {
  border-bottom: 0;
}

/* wpautop injects <br> between menu rows — hide them */
.nm-share-menu__panel > br,
.nm-share-menu__panel br,
.nm-share-menu__item br {
  display: none !important;
}

.nm-share-menu__item:hover,
.nm-share-menu__item:focus-visible {
  background: var(--nm-color-primary-soft);
  color: var(--nm-color-text);
  outline: none;
}

.nm-share-menu__item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--nm-color-focus);
}

.nm-share-menu__icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  background-color: currentColor;
}

.nm-share-menu__text {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.nm-share-menu__icon--copy {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-share-menu__icon--email {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-share-menu__icon--linkedin {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8.5 18H6V10h2.5v8zM7.25 8.75A1.375 1.375 0 1 1 7.25 6a1.375 1.375 0 0 1 0 2.75zM18 18h-2.5v-4.25c0-1.05-.75-1.25-1.05-1.25-.35 0-1.2.2-1.2 1.25V18H10.8v-8H13.2v1.1c.4-.7 1.25-1.35 2.55-1.35 1.75 0 2.25 1.15 2.25 2.65V18z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8.5 18H6V10h2.5v8zM7.25 8.75A1.375 1.375 0 1 1 7.25 6a1.375 1.375 0 0 1 0 2.75zM18 18h-2.5v-4.25c0-1.05-.75-1.25-1.05-1.25-.35 0-1.2.2-1.2 1.25V18H10.8v-8H13.2v1.1c.4-.7 1.25-1.35 2.55-1.35 1.75 0 2.25 1.15 2.25 2.65V18z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-share-menu__icon--facebook {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-share-menu__icon--x {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.727-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.727-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.nm-post-hero__share-btn--share[aria-expanded="true"] {
  background: var(--nm-color-primary);
  color: var(--nm-color-on-primary);
}

.nm-post-hero__frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: var(--nm-color-ad-slot);
}

.nm-post-hero__img,
.nm-post-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nm-post-hero__frame:hover img {
    transform: scale(1.02);
  }
}

@media (min-width: 1024px) {
  .nm-post-hero {
    padding: 1rem 1.5rem 0;
  }

  .nm-post-hero__inner {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
  }

  /* Compact 2:3 hero media (~416×624) */
  .nm-post-hero__media {
    flex: 0 0 min(38%, 26rem);
    width: min(38%, 26rem);
    max-width: 38%;
    order: 1;
    height: auto;
    align-self: stretch;
    border-radius: var(--nm-radius-card) 0 0 var(--nm-radius-card);
  }

  .nm-post-hero__frame {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .nm-post-hero__content {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    order: 2;
    padding: 2rem 2.5rem 1.75rem;
    min-height: 0;
    border-radius: 0 var(--nm-radius-card) var(--nm-radius-card) 0;
  }

  .nm-post-hero__share {
    top: 1.5rem;
    right: 1.5rem;
  }

  .nm-post-hero__breadcrumb {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .nm-post-hero__title {
    margin-top: auto;
    margin-bottom: auto;
    font-size: clamp(2rem, 2.5vw, 2.55rem);
  }

  .nm-post-hero__meta {
    margin-top: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .nm-post-hero__content {
    padding: 2rem 2rem 1.75rem;
  }

  .nm-post-hero__media {
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nm-post-hero__frame img {
    transition: none;
  }

  .nm-post-hero__frame:hover img {
    transform: none;
  }

  .nm-post-hero__share-btn {
    transition: background 150ms ease;
  }

  .nm-post-hero__share-btn:hover {
    transform: none;
  }
}

/* Align sidebar template-part with content column (no flow margin-block-start) */
.nm-layout--single > .wp-block-template-part:has(.nm-sidebar),
.nm-layout--content-sidebar > .wp-block-template-part:has(.nm-sidebar) {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* Tighten layout top after magazine hero */
.nm-layout--single {
  padding-top: 1.5rem;
}

@media (min-width: 1024px) {
  .nm-layout--single {
    padding-top: 2rem;
  }
}

/* Post body card — white surface on cream page */
.nm-single .wp-block-post-content.entry-content,
.nm-single-body > .wp-block-post-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--nm-color-surface);
  border-radius: var(--nm-radius-card);
  box-shadow: var(--nm-shadow-card);
}

@media (min-width: 640px) {
  .nm-single .wp-block-post-content.entry-content,
  .nm-single-body > .wp-block-post-content {
    padding: 1.75rem 1.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .nm-single .wp-block-post-content.entry-content,
  .nm-single-body > .wp-block-post-content {
    padding: 2rem 2.25rem 2.5rem;
  }
}

.nm-single .entry-content h2[id],
.nm-single-body h2[id] {
  scroll-margin-top: 1rem;
}

.nm-ai-disclosure {
  margin: 0.5rem 0 0;
  font-size: 14px;
  color: var(--nm-color-disclosure);
}

/* —— Body rhythm —— */
.nm-single-body > p,
.nm-single .entry-content > p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.nm-single-body > h2,
.nm-single .entry-content > h2,
.nm-nail-card > h2,
.nm-nail-card .wp-block-heading {
  margin-top: 2rem;
  margin-bottom: var(--nm-heading-mb);
}

.nm-inline-product {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--nm-color-primary);
  background: var(--nm-color-surface);
  border-radius: 0 var(--nm-radius-control) var(--nm-radius-control) 0;
}

/* —— Nail card loop —— */
.nm-nail-card {
  margin: 0 0 2rem;
}


.nm-nail-card__tip {
  font-size: 14px;
  color: var(--nm-color-text-muted);
  margin: 0.5rem 0 0;
}

/* Pin image card enhancements */
.nm-pin-image__frame {
  border-radius: var(--nm-radius-card);
  box-shadow: var(--nm-shadow-card);
  border: 1px solid var(--nm-color-border);
}

.nm-pin-image__more {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--nm-radius-control);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--nm-color-on-primary);
  background: var(--nm-color-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 150ms ease;
}

.nm-pin-image__more:hover {
  background: var(--nm-color-primary-dark);
  color: var(--nm-color-on-primary);
}

.nm-pin-image__caption {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.nm-pin-image__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nm-color-text);
}

@media (hover: hover) and (pointer: fine) {
  .nm-pin-image__frame:hover .nm-pin-image__more,
  .nm-pin-image__frame:focus-within .nm-pin-image__more {
    opacity: 1;
    pointer-events: auto;
  }

  .nm-pin-image__frame:hover img {
    transform: scale(1.03);
  }

  .nm-pin-image__frame img {
    transition: transform 200ms ease;
  }
}

@media (hover: none), (pointer: coarse) {
  .nm-pin-image__more {
    opacity: 1;
    pointer-events: auto;
    min-height: 48px;
  }
}

/* —— Quick Navigation (in-content TOC) —— */
.nm-quick-nav {
  background: var(--nm-color-surface);
  margin: 1.5rem 0 2rem;
  padding: 0 1rem;
  text-align: center;
}

.nm-quick-nav__rule {
  height: 1px;
  background: var(--nm-color-accent);
  position: relative;
  margin: 0 auto;
}

.nm-quick-nav__rule--top {
  margin-bottom: 1.25rem;
}

.nm-quick-nav__rule--bottom {
  margin-top: 0.75rem;
}

.nm-quick-nav__rule-accent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 3px;
  background: var(--nm-color-accent);
  border-radius: 2px;
}

.nm-quick-nav__title {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-color-text);
}

.nm-quick-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.nm-quick-nav__item a {
  color: var(--nm-color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.nm-quick-nav__item a:hover {
  color: var(--nm-color-primary-dark);
}

/* Collapsed: hide items beyond the first 5 */
.nm-quick-nav--collapsible:not(.is-expanded) .nm-quick-nav__item--more {
  display: none;
}

.nm-quick-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0.5rem auto 0;
  padding: 0;
  border: 0;
  border-radius: var(--nm-radius-control);
  background: var(--nm-color-text);
  color: var(--nm-color-on-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 150ms ease;
}

.nm-quick-nav__toggle:hover {
  background: var(--nm-color-primary-dark);
}

.nm-quick-nav__chevron {
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 150ms ease;
}

.nm-quick-nav.is-expanded .nm-quick-nav__chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .nm-quick-nav__toggle,
  .nm-quick-nav__chevron {
    transition: none;
  }
}

/* —— In-content ad slots (CLS-safe) —— */
.nm-ad-slot--incontent {
  min-height: 280px;
  margin: 1.5rem 0 2rem;
  width: 100%;
}

/* —— Engagement / related —— */
.nm-related {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nm-color-border);
}

.nm-related > h2 {
  margin-bottom: var(--nm-heading-mb);
}

/* Mobile/tablet: one row of 2; desktop keeps all 3 */
@media (max-width: 1023.98px) {
  .nm-related .nm-card-grid > .nm-card:nth-child(n + 3) {
    display: none;
  }
}

/* Related cards — title overlay on image */
.nm-related .nm-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

.nm-related .nm-card__hit {
  position: relative;
  display: block;
  border-radius: var(--nm-radius-card);
  overflow: hidden;
}

.nm-related .nm-card__media {
  border-radius: inherit;
}

.nm-related .nm-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 2.75rem 0.9rem 0.85rem;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--nm-color-primary-dark) 74%, transparent) 0%,
    color-mix(in srgb, var(--nm-color-primary-dark) 30%, transparent) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.nm-related .nm-card__title {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--nm-color-on-primary, #faf6f1);
  text-shadow: 0 1px 8px color-mix(in srgb, var(--nm-color-primary-dark) 45%, transparent);
  -webkit-line-clamp: 3;
}

.nm-related .nm-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: color-mix(in srgb, var(--nm-color-on-primary, #faf6f1) 84%, transparent);
}

.nm-engagement {
  margin: 2rem 0;
}

.nm-engagement--trending {
  padding: 1.5rem;
  background: var(--nm-color-surface);
  border: 1px solid var(--nm-color-border);
  border-radius: var(--nm-radius-card);
}

.nm-single-finder-cta {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--nm-color-primary-soft);
  border-radius: var(--nm-radius-card);
}

.nm-single-finder-cta h2 {
  margin-top: 0;
}

/* —— FAQ accordion (details/summary — no JS) —— */
.nm-faq {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nm-color-border);
}

.nm-faq__item {
  background: var(--nm-color-surface);
  border: 1px solid var(--nm-color-border);
  border-radius: var(--nm-radius-control);
  margin: 0 0 0.75rem;
  padding: 0;
  overflow: hidden;
}

.nm-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--nm-color-text);
}

.nm-faq__question::-webkit-details-marker {
  display: none;
}

.nm-faq__question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--nm-color-primary);
  line-height: 1;
}

.nm-faq__item[open] .nm-faq__question::after {
  content: "–";
}

.nm-faq__answer {
  padding: 0 1rem 1rem;
}

.nm-faq__answer p {
  margin: 0;
  font-size: 1rem;
  color: var(--nm-color-text-muted);
}

/* —— Mobile sticky bar —— */
.nm-single-sticky {
  display: none;
}

@media (max-width: 1023.98px) {
  body.nm-has-single-sticky {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .nm-single-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--nm-color-surface);
    border-top: 1px solid var(--nm-color-border);
    box-shadow: 0 -2px 8px rgba(26, 26, 26, 0.06);
  }

  .nm-single-sticky__btn {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 48px;
    margin: 0;
    padding: 0.25rem 0.35rem;
    border: 0;
    border-radius: var(--nm-radius-control);
    background: transparent;
    color: var(--nm-color-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .nm-single-sticky__btn--pin {
    color: #e60023;
  }

  .nm-single-sticky__btn--follow {
    color: var(--nm-color-primary);
  }

  .nm-single-sticky__icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
  }

  .nm-single-sticky__icon--pin {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }

  .nm-single-sticky__icon--share {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }

  .nm-single-sticky__icon--follow {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nm-pin-image__more,
  .nm-pin-image__frame img {
    transition: none;
  }

  .nm-pin-image__frame:hover img {
    transform: none;
  }
}
