.nsc-eprm-help {
  --nsc-eprm-ink: #1d3043;
  --nsc-eprm-muted: #526272;
  --nsc-eprm-border: #dce3e9;
  --nsc-eprm-blue: #135e96;
  max-width: 1160px;
  margin: 24px 0;
  color: var(--nsc-eprm-ink);
  font-size: 14px;
  line-height: 1.65;
}

.nsc-eprm-help [hidden] {
  display: none !important;
}

.nsc-eprm-help h2,
.nsc-eprm-help h3 {
  color: var(--nsc-eprm-ink);
  line-height: 1.35;
}

.nsc-eprm-help h3 {
  margin: 24px 0 8px;
  font-size: 15px;
}

.nsc-eprm-help p {
  margin: 0 0 16px;
  font-size: inherit;
  line-height: inherit;
}

.nsc-eprm-help code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef2f5;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.nsc-eprm-help a:focus-visible,
.nsc-eprm-help button:focus-visible,
.nsc-eprm-help summary:focus-visible,
.nsc-eprm-help [tabindex]:focus-visible {
  outline: 2px solid var(--nsc-eprm-blue);
  outline-offset: 3px;
  box-shadow: none;
}

.nsc-eprm-help-hero {
  padding: 30px;
  border: 1px solid var(--nsc-eprm-border);
  border-top: 4px solid #2271b1;
  border-radius: 10px;
  background: #fff;
}

.nsc-eprm-help-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nsc-eprm-help .nsc-eprm-eyebrow {
  margin: 0 0 10px;
  color: var(--nsc-eprm-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
}

.nsc-eprm-help-hero h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.nsc-eprm-help .nsc-eprm-help-intro {
  max-width: 580px;
  margin: 0;
  color: var(--nsc-eprm-muted);
  font-size: 15px;
}

.nsc-eprm-help-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.nsc-eprm-help-actions .button {
  padding: 4px 16px;
}

.nsc-eprm-help-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--nsc-eprm-border);
  list-style: none;
}

.nsc-eprm-help-steps li {
  display: flex;
  gap: 12px;
  margin: 0;
}

.nsc-eprm-step-number {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf5fb;
  color: var(--nsc-eprm-blue);
  font-weight: 600;
}

.nsc-eprm-help-steps strong,
.nsc-eprm-help-steps div > span {
  display: block;
}

.nsc-eprm-help-steps div > span {
  margin-top: 4px;
  color: var(--nsc-eprm-muted);
  font-size: 13px;
}

.nsc-eprm-help-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.nsc-eprm-help-sidebar {
  position: sticky;
  top: 52px;
}

.nsc-eprm-help-sidebar nav {
  padding: 18px 12px 12px;
  border: 1px solid var(--nsc-eprm-border);
  border-radius: 10px;
  background: #fff;
}

.nsc-eprm-help-sidebar .nsc-eprm-eyebrow {
  margin-left: 10px;
  color: var(--nsc-eprm-muted);
}

.nsc-eprm-help-sidebar ul {
  margin: 0;
}

.nsc-eprm-help-sidebar li {
  margin: 0;
}

.nsc-eprm-help-sidebar a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 5px;
  color: var(--nsc-eprm-ink);
  text-decoration: none;
}

.nsc-eprm-help-sidebar a:hover {
  background: #edf5fb;
  color: var(--nsc-eprm-blue);
}

.nsc-eprm-help-sidebar a span {
  color: var(--nsc-eprm-muted);
}

.nsc-eprm-help .nsc-eprm-sidebar-note {
  margin: 18px 10px 0;
  color: var(--nsc-eprm-muted);
  font-size: 12px;
}

.nsc-eprm-sidebar-note .dashicons {
  display: block;
  margin-bottom: 8px;
  color: var(--nsc-eprm-blue);
}

.nsc-eprm-help-content {
  min-width: 0;
}

.nsc-eprm-help-card {
  margin-bottom: 20px;
  padding: 26px;
  border: 1px solid var(--nsc-eprm-border);
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: 52px;
}

.nsc-eprm-help-card > :last-child {
  margin-bottom: 0;
}

.nsc-eprm-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.nsc-eprm-section-heading h2 {
  margin: 0 0 5px;
  font-size: 21px;
}

.nsc-eprm-section-heading p {
  margin: 0;
  color: var(--nsc-eprm-muted);
}

.nsc-eprm-help .nsc-eprm-section-icon {
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: #edf5fb;
  color: var(--nsc-eprm-blue);
  font-size: 22px;
}

.nsc-eprm-code-example {
  margin: 16px 0;
  border: 1px solid var(--nsc-eprm-border);
  border-radius: 7px;
  background: #f6f8fa;
}

.nsc-eprm-code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nsc-eprm-border);
}

.nsc-eprm-code-heading h3 {
  margin: 0;
  color: var(--nsc-eprm-muted);
  font-size: 12px;
  font-weight: 600;
}

.nsc-eprm-help .nsc-eprm-copy {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 26px;
}

.nsc-eprm-copy .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.nsc-eprm-help pre {
  margin: 0;
  padding: 16px;
  border-radius: 0 0 6px 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.nsc-eprm-help pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.nsc-eprm-code-dark pre {
  max-height: 420px;
  overflow: auto;
  background: #1d3043;
  color: #eef5fb;
}

.nsc-eprm-help .nsc-eprm-copy-feedback:not(.screen-reader-text) {
  margin: 0;
  padding: 0 16px 12px;
  color: var(--nsc-eprm-blue);
  font-size: 12px;
}

.nsc-eprm-help .nsc-eprm-help-note {
  padding: 14px 16px;
  border-left: 3px solid #72aee6;
  border-radius: 0 5px 5px 0;
  background: #f0f6fc;
}

.nsc-eprm-help-details {
  margin-top: 18px;
  border-top: 1px solid var(--nsc-eprm-border);
}

.nsc-eprm-help-details + .nsc-eprm-help-details {
  margin-top: 0;
}

.nsc-eprm-help-details summary {
  padding: 16px 2px;
  color: var(--nsc-eprm-blue);
  font-weight: 600;
  cursor: pointer;
}

.nsc-eprm-help-details summary::marker {
  font-size: 12px;
}

.nsc-eprm-help-details summary .nsc-eprm-help-tag {
  margin-left: 8px;
  vertical-align: middle;
}

.nsc-eprm-details-body {
  padding-bottom: 16px;
}

.nsc-eprm-details-body > :first-child {
  margin-top: 0;
}

.nsc-eprm-details-body > :last-child {
  margin-bottom: 0;
}

.nsc-eprm-table-scroll {
  margin: 16px 0;
  overflow-x: auto;
}

.nsc-eprm-help-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.nsc-eprm-help-table th,
.nsc-eprm-help-table td {
  padding: 12px;
  border-bottom: 1px solid var(--nsc-eprm-border);
  vertical-align: top;
}

.nsc-eprm-help-table thead th {
  background: #f6f8fa;
  color: var(--nsc-eprm-muted);
  font-size: 12px;
}

.nsc-eprm-help-table tbody th {
  font-weight: 400;
}

.nsc-eprm-help-table th code {
  white-space: nowrap;
}

.nsc-eprm-type {
  color: var(--nsc-eprm-muted);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.nsc-eprm-filename-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.nsc-eprm-filename-options > div {
  padding: 16px;
  border: 1px solid var(--nsc-eprm-border);
  border-radius: 7px;
}

.nsc-eprm-filename-options h3 {
  margin: 12px 0 10px;
  font-size: 16px;
}

.nsc-eprm-filename-options p {
  margin: 0;
  font-size: 13px;
}

.nsc-eprm-help-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #edf2f7;
  color: #385670;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.nsc-eprm-help-tag-green {
  background: #e9f5ec;
  color: #1a6532;
}

.nsc-eprm-api-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: var(--nsc-eprm-muted);
  font-size: 12px;
}

.nsc-eprm-text-link {
  font-weight: 600;
  text-underline-offset: 3px;
}

.nsc-eprm-help-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: 1px solid var(--nsc-eprm-border);
  border-radius: 10px;
  background: #eaf0f5;
}

.nsc-eprm-help-upgrade h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.nsc-eprm-help-upgrade p {
  margin: 0;
  color: var(--nsc-eprm-muted);
  font-size: 13px;
}

.nsc-eprm-help-upgrade .button {
  flex-shrink: 0;
}

.nsc-eprm-help .nsc-eprm-help-footer {
  margin: 18px 0 0;
  color: var(--nsc-eprm-muted);
  font-size: 12px;
}

@media screen and (max-width: 960px) {
  .nsc-eprm-help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .nsc-eprm-help-sidebar {
    position: static;
  }

  .nsc-eprm-help-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .nsc-eprm-help .nsc-eprm-sidebar-note {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .nsc-eprm-help {
    margin-top: 18px;
  }

  .nsc-eprm-help-hero {
    padding: 22px 18px;
  }

  .nsc-eprm-help-hero-main,
  .nsc-eprm-help-upgrade {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .nsc-eprm-help-hero h2 {
    font-size: 26px;
  }

  .nsc-eprm-help-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nsc-eprm-help-steps,
  .nsc-eprm-filename-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .nsc-eprm-help-card,
  .nsc-eprm-help-upgrade {
    padding: 20px 16px;
    scroll-margin-top: 62px;
  }

  .nsc-eprm-section-heading {
    gap: 10px;
  }

  .nsc-eprm-section-heading h2 {
    font-size: 20px;
  }

  .nsc-eprm-help .nsc-eprm-section-icon {
    flex-basis: 34px;
    height: 34px;
    font-size: 20px;
  }

  .nsc-eprm-help .nsc-eprm-copy {
    min-height: 36px;
  }

  .nsc-eprm-help-table {
    min-width: 440px;
  }
}
