<?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_f7b8fa01-bebc-4bfb-94f9-0d360aa60913">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_ff635145-ae37-4cb1-a44a-491ee29e2da4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_ff4af912-9137-44b0-862a-02b6d51ffde9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_b0760c90-0872-4fb3-bfa8-fc3955d14901">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_1db63fef-d1c6-40ad-a9cc-1b9eee6b5b4e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_8b84cefa-72b2-41dd-a574-676e0b3cf3aa">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_42ae2d6b-c12f-4061-afee-e49dc1b5e44e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_44d813f0-8cae-4d90-bf59-77a18e732451">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_a3f0664c-f433-4023-91e5-3d787d9f4555">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_e30921c5-7210-423a-9251-8b62546bb512">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      id="F_0bf80261-540c-46c3-8b69-4f3a3d2a004a">&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;490,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_f7b8fa01-bebc-4bfb-94f9-0d360aa60913"
      decimals="-3"
      id="F_530c404f-5286-4ed7-948c-441155eb9c72"
      unitRef="U_USD">490000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
