<?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_15c78cec-9cfd-4f51-86a0-2b41b736277a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_3d48a36f-5364-47a7-8c15-f14db2b16334">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_0acb8d1b-4aeb-4d08-9d3a-8a8ded7cab53">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_2a4f498e-f882-43e2-89df-7e5115a7fa2f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_741529af-19cb-4e18-9d8a-9645759968e9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_a697d129-71d4-4d55-be69-aadda715b364">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_b5252d25-21d1-4a93-ab33-79d4d3a0f96a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_c614793a-3e30-4948-b97b-738e4d7e629a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_bb5a793c-ed80-453e-a840-ca8ef413b83d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_f768f825-5060-4a1e-8eeb-d42b029c4f4a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      id="F_73132174-e11c-4850-a1c6-9b8fe5ac0f2b">&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;11,508,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_15c78cec-9cfd-4f51-86a0-2b41b736277a"
      decimals="-3"
      id="F_fad8ee73-156c-4b6c-9cea-694ab940e7b5"
      unitRef="U_USD">11508000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
