<?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_e355ce87-92bd-48ce-a9a8-12fac405d11d">
        <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_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_d4dc617a-4d68-41e8-a65a-6ca9fa5f51b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_e252b679-437c-4297-8a09-73899d7036ae">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_0def2399-7dac-4f29-9cc2-bcf26b2b958e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_b1ae3bce-a1d7-4602-b3fe-a5ad0070f6f9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_44e2676e-d29e-4493-9ab7-ce5aa9484e0a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_5e228f90-e13e-4c54-ab5f-e3f50b4af8b2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_4fb75f22-1eb3-474d-aced-803a429cac51">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_e4670675-c473-4d52-861e-92b9230357eb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_6c17b611-ee85-4d6e-a90c-1d07c08a900d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      id="F_35819b9f-3d52-4e69-835e-8c49acfe12c2">&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,195,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_e355ce87-92bd-48ce-a9a8-12fac405d11d"
      decimals="-3"
      id="F_b88486c1-70bd-4e70-828a-37742430676e"
      unitRef="U_USD">2195000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
