<?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_8695b70c-bdf4-4edb-bc73-8679bcf3ce57">
        <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:EntityCentralIndexKey
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_a7b76606-cb3c-4970-aa57-fe891e6e3c3f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_2f714d82-61e2-42ff-8035-2c37fd9d5570">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_7d3a6f6b-4db2-4648-96c2-409dcf7b950b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_705df256-1774-4d75-adf9-170ddc65400a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_578642a3-b489-4f13-b81d-2994c0acb520">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_b35cdf6b-fb89-4c45-b3a8-6c5f023239b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_3ffc8ba5-336b-4cf7-9669-5fa0a9840f7a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_c6b92dde-6d9d-4f99-9591-c44d125cee58">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_0a577837-fcb5-4ded-90a9-3095c3042202">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      id="F_54f7a043-9139-4365-a65f-87c02e8f8d8c">&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;6,344,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_8695b70c-bdf4-4edb-bc73-8679bcf3ce57"
      decimals="-3"
      id="F_fbef32db-ff3f-4ca2-82b4-bda75b79ee0c"
      unitRef="U_USD">6344000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
