<?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_a041bfaf-8286-4290-b8a3-e51f5bba824f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_f01b69a0-0508-4721-9be1-6f2d7fa2e399">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_cd4ed577-377e-4f72-a2fd-f899e5106ae2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_2a28a9ff-9566-4854-b4a9-6013f44e5c64">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_ece891db-9b38-400e-a457-7254dd96867c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_fa7525da-8f12-4b11-ad97-3deec041125c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_67ee0d3d-2e14-4e01-9399-a52f61597b45">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_c8c4796c-fcde-4fdf-8964-b729d989a828">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_1c04dfc7-0d0e-4c12-b603-b2809e0fdfb7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_9365a56b-9c34-4827-8692-f0d2cb3fa44a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      id="F_c0fc2541-aafb-4d2f-8519-f00bbffee797">&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,827,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_a041bfaf-8286-4290-b8a3-e51f5bba824f"
      decimals="-3"
      id="F_f7b433c8-6544-49ed-b579-a5caa2c5af3f"
      unitRef="U_USD">2827000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
