<?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_ced5b638-d941-4294-a891-127e9ef88f83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_85d0d250-6ff4-4b6b-ae01-74f6410b9ac3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_b3315ff5-b409-4130-b173-dd7a8fe11d07">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_5b72f2a9-e34c-4e80-8c58-c412af86a149">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_db8f0cc0-d21c-4352-88f7-ab78d7f13b05">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_09060804-e25a-4fd5-9f85-389ba65c564f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_5d4a7fce-785d-4956-83b9-5b3271fb7304">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_18bce9b4-94fc-4c93-b1df-ebb67c25aece">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_8905e066-671c-4ce0-8889-6016a376db1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_9c685e52-9496-4e95-a6fe-feb0ec154a4e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ced5b638-d941-4294-a891-127e9ef88f83"
      id="F_5ae3c83d-f0cd-4dcc-aef6-c6dd57f47dc4">&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;1,378,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_ced5b638-d941-4294-a891-127e9ef88f83"
      decimals="-3"
      id="F_a884fdd9-c827-4844-8d69-3a06154ec81b"
      unitRef="U_USD">1378000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
