<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_cfecd7a6-7a57-4080-9afa-a8dde346a854">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_49f99b31-ce62-4fce-aaf3-6c3bb922c52b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_24a9fe43-9c9c-4dac-ad21-281e3cc91790">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_be763a6a-8e08-4a09-8bcd-4efd0c15d446">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_9e00f859-5f3d-4c32-92b4-1ca66c6df11f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_af591b7c-7161-445f-95fd-f398a417f02b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_416d6124-1229-44c1-899a-cbaa39d59654">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_fc2b67b7-e700-4ba7-b919-a5c44907dbb9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_542a74c4-233c-4ed0-be24-8654d22d2a3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      id="F_048aed19-56cc-4357-9910-c6de7ec382d1">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;325,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_e941fb35-1bd2-4b4a-aa89-7fcdd9377e52"
      decimals="-3"
      id="F_45849f8a-8e83-4350-acee-849515cae392"
      unitRef="U_USD">325000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
