<?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_588eb428-64f0-49e9-bee7-9727378a9335">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_68a65177-f118-4573-846b-1e47c28cfd43">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_1effa455-2c67-4ea9-b733-98d5a6f7c771">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_7c5e18c3-9d62-436c-9b64-ed0edf60a763">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_b37ba1bc-6ce3-42bb-a096-c4a082925ec9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_b06d7903-3545-4da7-a913-d4d84b080ebb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_f3d90a47-0aec-4680-8d34-db7b0482e1e0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_0505d90a-34e7-4d98-8c7e-5dbfdfa40d4e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_db753e37-8057-4d43-9315-46d97e61bfc4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_3ef2c835-d0cc-4657-bde2-8cfb1e94aa6b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_588eb428-64f0-49e9-bee7-9727378a9335"
      id="F_daf10f97-8204-4824-898a-ac1b3615958f">&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;352,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_588eb428-64f0-49e9-bee7-9727378a9335"
      decimals="-3"
      id="F_619f002e-cee8-4380-b739-de51ab0b5bd8"
      unitRef="U_USD">352000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
