<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_a1b0ac0e-5fef-47dc-8628-2ac43ccc14ff">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_07abacca-fc0a-442e-9049-f5a68c6b08be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_0c63fba3-abc0-4964-97c3-72640eb88d39">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_48a16c96-2137-49a3-ab57-0072a67ef9b6">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_df1af5b6-e666-4d6e-9415-9850e7864c4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_ba6164ec-e886-48b6-862f-187df5a42cf9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_8c19abd7-02a8-4237-b2f3-ec356791bdc4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_cd777308-b688-487c-9a02-70c7c4c53456">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_7778d5c8-ee8a-4b84-82f9-f97e474703f0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      id="F_ee26c4ca-d7d6-4854-9f60-074f041d3805">&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,115,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_cfc0accb-9ff9-4ba3-b78b-f833b4772eb2"
      decimals="0"
      id="F_0739e48d-90ba-4543-9826-ceeb2f5bf94a"
      unitRef="U_USD">6115000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
