<?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_6b22c28a-b956-4d6a-ade9-b93fb7a41524">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_f8527145-91f5-4819-92fe-6400d80e88a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_b05a6fda-9eb0-41dc-85a7-a8ecb61172e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_842d6649-4056-44cb-9b76-702e2db0bfc6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_f65044c0-3130-4d62-b20a-72b72dec8378">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_8929e871-1cf5-4afe-b99d-af96a0c10657">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_42789b35-36f3-4c43-900f-5cda0c819848">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_c17a42e5-cf80-4586-91b0-79f88a49cb6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_b9803182-d172-403f-9128-9b3af503ce86">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_acb97cad-3178-4029-84e3-f9d985f7cda1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      id="F_02751678-c5a4-43d7-9d5a-2b35b447c6be">&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;321,786,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_6b22c28a-b956-4d6a-ade9-b93fb7a41524"
      decimals="0"
      id="F_c5d04d8a-0771-49e4-80f6-bc971d24838f"
      unitRef="U_USD">321786000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
