<?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_2d2ee967-61d7-42d3-b79a-0b80233c72e6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_5272d1f0-89a0-48f3-a722-0e590dd0900b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_f13cd515-7cd7-4cb4-a990-89bbb4e80c6e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_89319d18-966c-44f9-bb65-c0acb815dfc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_f22d1b70-6044-4096-b513-0803a4674175">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_2c248630-b13b-41ae-9129-d3f66ab32c30">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_33c9194a-f2a5-45ab-97c8-6dff745ced67">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_c33d02a1-b3ba-4f7a-a72a-8f5c54735432">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_2a08cfd0-197d-4b39-8395-550a417a223b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_f9e85dfc-8db8-463b-98b7-23ff226812f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      id="F_997bf018-2303-4b09-a74e-f811da26816f">&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;1,170,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_2d2ee967-61d7-42d3-b79a-0b80233c72e6"
      decimals="0"
      id="F_3a197c1f-ba7b-4a8d-b3c0-5778430f1298"
      unitRef="U_USD">1170000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>