<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_55ba1096-99bb-460b-9f20-21ffaf2f4445">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_5c8b3ef4-6434-4549-94b1-63b86632eb66">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_39102c1a-b147-464a-a976-be20484d85c6">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_cfabc079-5cff-4dfd-a3ac-a90971c4b40a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_d5fd99b9-2fd7-4e6a-b472-edf0c316457f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_47ed070d-8171-4a6c-9ef7-a51d2d6fa3fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_435a02ee-39b8-4e4d-9484-26495304dd43">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_0a9e96ea-05bb-4aff-a502-68a7cf7f1891">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_73e9c8f8-7711-4636-a986-46b1933d267a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_d65a0d9a-74c9-403b-9b9e-05dec73811ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      id="F_81f13396-8982-4336-a8c3-11d414e5b01b">&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;496,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_55ba1096-99bb-460b-9f20-21ffaf2f4445"
      decimals="0"
      id="F_8687e0e9-794a-49fb-a617-f38831f678b6"
      unitRef="U_USD">496000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>