/* The control sits beside the original image link. Credits retain their own link and position. */
.ndc-look-frame { position: relative; scroll-margin-top: 4.5rem; }
/* These links arrive with the page, independently of the local shortlist. */
.ndc-pin-frame { position: relative; scroll-margin-top: 4.5rem; }
span.ndc-pin-frame { display: inline-block; max-width: 100%; vertical-align: top; }
span.ndc-pin-frame:has(.aligncenter) { display: block; width: fit-content; margin-inline: auto; }
span.ndc-pin-frame img { display: block; }
/* A 28px Pinterest Save badge inside a 44px touch target. Native badge artwork from pinterest/widgets. */
.ndc-pin-frame > a.ndc-pinterest-save {
  position: absolute; z-index: 2; top: 0; left: .25rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: auto; min-width: 44px; min-height: 44px;
  margin: 0; padding: 0 4px; border: 0; background: transparent; color: #fff; text-decoration: none;
}
.ndc-pinterest-save > .ndc-pin-badge {
  display: inline-flex; align-items: center; gap: 4px;
  box-sizing: border-box; min-height: 28px; padding: 0 7px 0 6px;
  border-radius: 4px; background: #e60023; color: #fff;
  font: 700 14px/1 Helvetica, Arial, sans-serif; letter-spacing: normal; white-space: nowrap;
}
.ndc-pinterest-save > .ndc-pin-badge::before {
  content: ""; display: block; width: 18px; height: 18px; flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20height=%2230px%22%20width=%2230px%22%20viewBox=%22-1%20-1%2031%2031%22%3E%3Cg%3E%3Cpath%20d=%22M29.449,14.662%20C29.449,22.722%2022.868,29.256%2014.75,29.256%20C6.632,29.256%200.051,22.722%200.051,14.662%20C0.051,6.601%206.632,0.067%2014.75,0.067%20C22.868,0.067%2029.449,6.601%2029.449,14.662%22%20fill=%22%23fff%22%20stroke=%22%23fff%22%20stroke-width=%221%22%3E%3C/path%3E%3Cpath%20d=%22M14.733,1.686%20C7.516,1.686%201.665,7.495%201.665,14.662%20C1.665,20.159%205.109,24.854%209.97,26.744%20C9.856,25.718%209.753,24.143%2010.016,23.022%20C10.253,22.01%2011.548,16.572%2011.548,16.572%20C11.548,16.572%2011.157,15.795%2011.157,14.646%20C11.157,12.842%2012.211,11.495%2013.522,11.495%20C14.637,11.495%2015.175,12.326%2015.175,13.323%20C15.175,14.436%2014.462,16.1%2014.093,17.643%20C13.785,18.935%2014.745,19.988%2016.028,19.988%20C18.351,19.988%2020.136,17.556%2020.136,14.046%20C20.136,10.939%2017.888,8.767%2014.678,8.767%20C10.959,8.767%208.777,11.536%208.777,14.398%20C8.777,15.513%209.21,16.709%209.749,17.359%20C9.856,17.488%209.872,17.6%209.84,17.731%20C9.741,18.141%209.52,19.023%209.477,19.203%20C9.42,19.44%209.288,19.491%209.04,19.376%20C7.408,18.622%206.387,16.252%206.387,14.349%20C6.387,10.256%209.383,6.497%2015.022,6.497%20C19.555,6.497%2023.078,9.705%2023.078,13.991%20C23.078,18.463%2020.239,22.062%2016.297,22.062%20C14.973,22.062%2013.728,21.379%2013.302,20.572%20C13.302,20.572%2012.647,23.05%2012.488,23.657%20C12.193,24.784%2011.396,26.196%2010.863,27.058%20C12.086,27.434%2013.386,27.637%2014.733,27.637%20C21.95,27.637%2027.801,21.828%2027.801,14.662%20C27.801,7.495%2021.95,1.686%2014.733,1.686%22%20fill=%22%23e60023%22%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
/* Give the Save action more visual weight on full-size article photos. */
.ndc-article-page .ndc-pin-frame > a.ndc-pinterest-save { top: 4px; min-height: 48px; }
.ndc-article-page .ndc-pin-badge {
  min-width: 90px; min-height: 40px; justify-content: center; gap: 5px; font-size: 16px;
}
.ndc-article-page .ndc-pin-badge::before { width: 22px; height: 22px; }
.ndc-pin-frame > a.ndc-pinterest-save:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 0 0 2px #30232b; border-radius: 5px; }
@media print {
  .ndc-pin-frame > a.ndc-pinterest-save { display: none; }
}
@media (forced-colors: active) {
  .ndc-pin-badge { outline: 1px solid LinkText; }
}
html:has(meta[name="pinterest" i][content~="nopin" i], meta[name="pinterest" i][content~="nohover" i]) .ndc-pinterest-save { display: none; }
.ndc-board-legacy-media { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.ndc-board-legacy-media img { display: block; }
.ndc-look-frame > .ndc-save-look {
  position: absolute; z-index: 2; inset: .55rem .55rem auto auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .32rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: .45rem .7rem; margin: 0;
  border: 1px solid #5b3930; border-radius: 2rem; background: var(--studio-paper); color: var(--studio-ink);
  font: 650 .76rem/1.1 var(--ndc-sans, var(--sans, Arial, sans-serif));
  letter-spacing: .01em; text-transform: none; cursor: pointer;
}
/* Compact image cards still have room for both tap targets. */
.ndc-pin-frame.ndc-look-frame > .ndc-save-look {
  box-sizing: border-box; width: clamp(2.75rem, calc(100% - 5.75rem), 6.4rem);
  container: ndc-shortlist-action / inline-size;
}
.ndc-article-page .ndc-pin-frame.ndc-look-frame > .ndc-save-look {
  width: clamp(2.75rem, calc(100% - 7.5rem), 6.4rem);
}
@container ndc-shortlist-action (max-width: 4.4rem) {
  .ndc-save-look > .ndc-save-label { display: none !important; }
}
.ndc-save-look svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ndc-look-frame > .ndc-save-look:hover { background: #fbe5ea; color: var(--studio-ink); }
.ndc-look-frame > .ndc-save-look[aria-pressed="true"] { color: var(--studio-paper); background: var(--studio-berry); border-color: var(--studio-berry); }
.ndc-save-look[aria-pressed="true"] svg { fill: currentColor; }
.ndc-board-active { overflow: hidden; }
.ndc-board-dialog:not([open]), .ndc-board-toast[hidden], [data-ndc-board-open][hidden] { display: none !important; }
.ndc-board-dialog {
  position: fixed; inset: 0; box-sizing: border-box; width: 100%; max-width: none;
  height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: var(--studio-ink);
  font: 400 1rem/1.45 var(--ndc-sans, var(--sans, Arial, sans-serif));
}
.ndc-board-dialog[open] { display: flex; justify-content: flex-end; }
.ndc-board-dialog::backdrop { background: rgb(36 20 26 / 56%); }
.ndc-board-panel {
  box-sizing: border-box; width: min(100%, 34rem); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: max(1.4rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  border-inline-start: 1px solid #6e4a41; background: var(--studio-paper);
}
.ndc-board-head, .ndc-board-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ndc-board-head { padding-bottom: .95rem; border-bottom: 1px solid var(--studio-line); }
.ndc-board-head h2 { margin: 0; color: var(--studio-ink); font: 500 clamp(1.95rem, 4vw, 2.55rem)/1.07 var(--studio-serif); letter-spacing: -.045em; }
.ndc-board-detail, .ndc-board-position { color: var(--studio-muted); font-size: .88rem; }
.ndc-board-dialog .ndc-board-detail { margin: .9rem 0 1.35rem; }
.ndc-board-dialog .ndc-board-tools { margin: 0 0 1rem; }
.ndc-board-dialog button, .ndc-board-toast button {
  min-height: 2.75rem; border-radius: 0; text-transform: none; letter-spacing: normal; cursor: pointer;
  font: 650 .9rem/1.2 var(--ndc-sans, var(--sans, Arial, sans-serif));
}
.ndc-board-dialog .ndc-board-primary, .ndc-board-dialog .ndc-board-secondary {
  padding: .5rem .85rem; border: 1px solid var(--studio-berry);
}
.ndc-board-dialog .ndc-board-primary { background: var(--studio-berry); color: var(--studio-paper); }
.ndc-board-dialog .ndc-board-primary:hover { background: #682e47; }
.ndc-board-dialog .ndc-board-secondary { background: transparent; color: var(--studio-berry); }
.ndc-board-dialog .ndc-board-secondary:hover { background: var(--studio-blush); }
.ndc-board-dialog button:disabled { color: #716461; background: #eee8e5; border-color: #b6a7a3; cursor: default; }
.ndc-board-dialog .ndc-board-empty-title { margin: 2.4rem 0 .5rem; color: var(--studio-ink); font: 600 1.35rem/1.25 var(--studio-serif); }
.ndc-board-dialog .ndc-board-empty-copy { margin: 0; max-width: 29ch; }
.ndc-board-dialog .ndc-board-list { margin: 0; padding: 0; list-style: none; }
.ndc-board-row {
  display: grid; grid-template-columns: 4.7rem minmax(0, 1fr) auto; gap: .8rem; align-items: center;
  padding: .8rem 0; border-top: 1px solid #d6c1ba;
}
.ndc-board-dialog .ndc-board-preview { display: block; width: 100%; padding: 0; border: 0; background: #f3dbe0; }
.ndc-board-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ndc-board-dialog .ndc-board-look-title { color: var(--studio-ink); font: 620 1rem/1.28 var(--ndc-sans, var(--sans, Arial, sans-serif)); margin: 0 0 .25rem; overflow-wrap: anywhere; }
.ndc-board-dialog .ndc-board-source, .ndc-board-dialog .ndc-board-remove, .ndc-board-toast button {
  color: var(--studio-berry); text-decoration: underline; text-underline-offset: .16em; font-size: .84rem;
}
.ndc-board-dialog .ndc-board-source { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ndc-board-dialog .ndc-board-remove, .ndc-board-toast button { padding: .25rem .15rem; border: 0; background: transparent; }
.ndc-board-dialog .ndc-board-full-photo {
  display: block; width: 100%; height: min(58vh, 35rem); height: min(58dvh, 35rem);
  object-fit: contain; background: #f5e9e5; margin: .65rem 0 1rem;
}
.ndc-board-dialog .ndc-board-message { margin: .65rem 0 0; color: var(--studio-muted); font-size: .9rem; }
.ndc-board-message:empty { display: none; }
.ndc-board-toast {
  position: fixed; z-index: 9999; left: 50%;
  top: max(calc(var(--wp-admin--admin-bar--height, 0px) + .75rem), env(safe-area-inset-top));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: .9rem; box-sizing: border-box;
  width: max-content; max-width: calc(100% - 2rem); padding: .35rem .85rem; background: var(--studio-paper); border: 1px solid #6e4a41; color: var(--studio-ink);
  font: 500 .9rem/1.35 var(--ndc-sans, var(--sans, Arial, sans-serif));
}
.ndc-board-toast button { white-space: nowrap; }
.ndc-save-look:focus-visible, .ndc-board-dialog :is(button,a):focus-visible, .ndc-board-toast button:focus-visible {
  outline: 3px solid #8f1253; outline-offset: 3px; box-shadow: 0 0 0 3px var(--studio-paper);
}
@media (max-width: 40rem) {
  .ndc-board-panel { padding-inline: max(1.05rem, env(safe-area-inset-left)) max(1.05rem, env(safe-area-inset-right)); border: 0; }
  .ndc-board-row { grid-template-columns: 3.9rem minmax(0, 1fr) auto; gap: .6rem; }
  :is(.nj-figure,.ci-photo,.studio-photo,.card-figure) > .ndc-save-look { right: .25rem; top: .25rem; padding: .45rem; }
  :is(.nj-figure,.ci-photo,.studio-photo,.card-figure) > .ndc-save-look .ndc-save-label { display: none; }
}
@media (forced-colors: active) {
  .ndc-save-look svg { stroke: ButtonText; }
  .ndc-save-look[aria-pressed="true"] svg { fill: ButtonText; }
}
.ndc-shell-head button.ndc-board-launch {
  display: inline-flex; align-items: center; justify-content: center; flex: none; gap: .32rem;
  margin: 0; min-width: 2.75rem; min-height: 2.75rem; padding: .2rem .25rem;
  color: inherit; background: transparent; border: 0; border-radius: 0;
  font: 600 .88rem/1.15 var(--ndc-sans, var(--sans, Arial, sans-serif)); text-transform: none;
  letter-spacing: normal; white-space: nowrap; cursor: pointer;
}
.ndc-shell-head .ndc-board-launch svg { display: block; width: 1.2rem; height: 1.2rem; flex: none; }
.ndc-shell-head .ndc-board-launch:hover { background: transparent; color: #73264e; }
.ndc-shell-head .ndc-board-launch:focus-visible { outline: 3px solid #8f1253; outline-offset: 2px; }
.ndc-shell-head .ndc-board-launch [data-ndc-board-count]:not([hidden]) {
  display: inline-grid; min-width: 1.2rem; height: 1.2rem; padding-inline: .14rem; place-items: center;
  color: var(--studio-paper); background: var(--studio-berry); border-radius: 1rem; font: 650 .7rem/1 var(--ndc-sans, var(--sans, Arial, sans-serif));
}
.ndc-shell-head .ndc-board-launch [data-ndc-board-count][hidden] { display: none; }
@media (max-width: 60rem) {
  .ndc-shell-head .ndc-board-launch .ndc-board-word { display: none; }
}
.ndc-board-dialog.ndc-board-fallback[open] { z-index: 2147483646; background: rgb(36 20 26 / 56%); }

/* Leave an example label on the cover; keep the rest of the photography clear. */
.ndc-home .ndc-look-frame > .ndc-save-look:not(:hover):not(:focus-visible) .ndc-save-label { display: none; }
.ndc-home :is(.nj-cover, .ci-sample:first-child) .ndc-save-look:not(:hover):not(:focus-visible) .ndc-save-label { display: inline; }
@media (min-width: 60.0625rem) {
  .ndc-home .studio-specimens .studio-photo:first-child .ndc-save-look:not(:hover):not(:focus-visible) .ndc-save-label { display: inline; }
}
