<?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_0d3c1fd3-842c-473a-a62a-61f08804adda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_60af4476-70c4-451f-9c66-65a435f35f6f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_52b6f041-de45-4a9a-a01c-332018a8dffd">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_eca23582-f9e5-4522-8349-14d27133059d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_f1e9c2e0-5802-48ba-8bb3-efcf8101f5f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_678fb770-53d1-4613-93c7-3d79beb5e445">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_a1ff877c-0435-49a6-89a5-e4067734eb70">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_42cf26a1-8af2-459a-bb3f-d7109c13a838">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_61d792ce-54e1-462e-817d-fb47a3343715">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_32989ac0-beb1-4bee-85df-cb2ce9b60be3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0d3c1fd3-842c-473a-a62a-61f08804adda"
      id="F_23f2afbb-fb34-424a-bbc7-709449fe2690">&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;7,004,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_0d3c1fd3-842c-473a-a62a-61f08804adda"
      decimals="0"
      id="F_2e83e519-2470-440d-9aac-b335b3fd42c9"
      unitRef="U_USD">7004000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
