<?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_8152b711-4aa9-4071-8e95-8795fde0589a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_b6f4d33e-28ea-4daa-90ac-68826039381a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_b7249806-93a5-4c32-812e-d4a968dc1657">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_1c1cd54f-32e8-4293-b6b8-6967978024f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_be706b06-9424-4760-b1bd-22f8328e13c3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_2dbf19ed-cb98-44e8-ac5d-688476f3fbfb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_ec02155f-57a1-49c8-90ea-5817a7500ab8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_5c553629-3910-456a-973f-0081a5300ea3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_cd925de3-d6cc-4a7d-a9f3-303374c1cc57">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_3f9fbae1-da52-4919-a514-a8fcd92f2c69">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8152b711-4aa9-4071-8e95-8795fde0589a"
      id="F_7e7b8508-6c6a-4fd1-927d-b717346558b6">&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;17,525,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_8152b711-4aa9-4071-8e95-8795fde0589a"
      decimals="0"
      id="F_983fcb5f-b5f7-473a-8c46-18e7ab1ed650"
      unitRef="U_USD">17525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
