<?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_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_39fc02b3-884f-44c0-b5bc-fd287249850b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_960e1652-d817-4388-b57b-2d8f897cbeb4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_eb338680-39c4-4b5a-b7f9-cb9ccf6e1b88">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_e136529b-d17e-4aa4-a244-aa4c40cd114e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_a218910a-328f-4b30-b113-edd90ec6d5f0">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_05bc436e-e9da-4544-96ef-fd0874c3a9a1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_22a1a797-a239-47ef-9f49-c39d75eb496e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_6205c6a9-f812-4204-bd20-5433fd8a2ae6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_49257d55-3c50-4b7b-a12a-ef13565bbb13">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      id="F_db7d9af9-8acb-41d7-bc0e-9ec1b99290c7">&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;2,710,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_a59a9aef-98c0-4d9c-b0e6-abf3a3b1b07d"
      decimals="-3"
      id="F_ed0c3f04-dd6e-4d3f-a144-719ddd42551b"
      unitRef="U_USD">2710000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
