<?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_8a1beb87-86a4-4a74-a91e-523635bc76c8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_a3a29c1d-cf39-4eda-8276-fb0e21872b90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_c4d07630-34dc-4e20-ae98-e5425292b96c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_5115fbcb-e176-440e-b0e4-998036ade4be">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_7ed0d79b-c9ad-4951-804f-baee876ef1ee">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_006a5350-a6b8-4f4a-b772-c5e9e4b9aab6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_4949e025-20bc-4cfe-be99-0ad30c57cb9c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_2de0e620-c6ef-4d0f-a4f0-acb321a8c128">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_6e069219-4369-46cc-8932-93dc0050451c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_f078745e-c976-4c9b-821d-bc3984732a80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      id="F_4c3f74a0-b5a0-4dae-a8f4-8215ee9ea89e">&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,408,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_8a1beb87-86a4-4a74-a91e-523635bc76c8"
      decimals="-3"
      id="F_0129aca4-0f9c-466e-b679-fc77986eb9ec"
      unitRef="U_USD">2408000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
