<?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_357ca524-64d4-4ec3-b84f-358e7a123f08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_b034de1d-1a2b-44b2-9230-f2b51a9e2383">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_d4c69e8b-2b5e-4cf6-86e7-858a395b30e5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_4fdf3048-289f-4c04-b02a-c05c04e259cc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_cac0132c-fa4d-4fc2-bc86-e981b2027341">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_a1aec5dc-fd8d-4686-a72f-be7b1c2a8a28">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_ad7ad85d-4098-4137-bba8-a1eb70217bac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_37834ca8-be8c-418e-bb2a-701e38f6767e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_f8beff47-f243-48b9-8083-392cd1b82655">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_f37e3916-e213-46ad-b615-d94eda1a136e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_357ca524-64d4-4ec3-b84f-358e7a123f08"
      id="F_98c48184-e694-49d7-88c0-c4e1bf60f8b5">&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;14,129,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_357ca524-64d4-4ec3-b84f-358e7a123f08"
      decimals="-3"
      id="F_d308ead2-71be-435a-adc2-75a47ff19e36"
      unitRef="U_USD">14129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
