<?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_dd55a2c6-51b1-4115-9013-bb627dd6da1e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_d5769687-090a-42d0-8bbc-198c9e323138">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_5600f8f9-dcca-49f5-82d1-a8645033c4b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_2a11d7df-178c-4685-a0e4-94184b22cd8f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_ca5fd368-85ba-4c7e-ba8a-6fada66323c0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_f06b696d-86ab-484c-a07e-edf8294a3331">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_de8b0fd2-e447-4c8d-af3c-92e684740867">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_ed9df47a-cc43-4708-93de-ccd8fd1a59d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_580f98f5-142a-4863-9caa-b879f7673224">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_b87ee37f-3418-41ca-91a5-c32070088772">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      id="F_8c04b5c3-c9a9-49d3-8ea7-c7e880a76fe2">&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;500,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_dd55a2c6-51b1-4115-9013-bb627dd6da1e"
      decimals="-3"
      id="F_cf6cdcac-8305-4f27-b5a2-af91476ccf2b"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
