<?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_34638c2f-d7e2-4085-a583-e97754eefe2f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_15acdfd6-bcc4-4a16-85f6-724a865a7123">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_4e0798f7-0031-4d25-8181-27a1ea77ddd9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_897af4fe-4fb5-41b8-9fe7-2a0efa2b942a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_d5263dd8-3ca8-43e8-ad6c-c642f4a14c44">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_6500b632-73bd-40c6-934b-670a29510627">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_2bac3293-daf2-4f41-97f2-1aefefea115a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_76cd6517-1c66-49e8-9466-1c7f409d2b0e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_91af7b0b-b612-468b-8778-46193c943b06">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_c83d9787-22af-46c8-a3fc-cac5ace886d5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_34638c2f-d7e2-4085-a583-e97754eefe2f"
      id="F_d597e909-0c8a-4319-b4b6-d05fadb5f913">&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;347,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_34638c2f-d7e2-4085-a583-e97754eefe2f"
      decimals="0"
      id="F_3e9c8970-14fa-48eb-a5bd-98848686b4ff"
      unitRef="U_USD">347000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
