<?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_3fed1e61-b6b2-4e18-8069-999ca9d7932f">
        <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_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_d132a238-180d-42b9-bd0c-7e3ceae39710">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_2d8870d2-a8cb-4b7f-8e13-28c91b8affee">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_a639c477-ff9c-41ac-aa84-a2aaa8784ecc">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_a48cfbfa-2c78-4a9a-ab42-9f49ca29abea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_1e85f131-6891-4f31-a281-d0b380cce24b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_72816181-ee01-44b5-ba64-360d445f88e5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_5ec8db84-55d1-4aef-a725-b46fccdc72f5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_0b23c7c2-5f86-47a8-8653-5dcca8686979">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_cadfe51a-800e-473e-978b-a8dd7fb5cb56">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      id="F_3d75a2cf-4f8a-47ec-802e-90509b3be67a">&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;5,310,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_3fed1e61-b6b2-4e18-8069-999ca9d7932f"
      decimals="0"
      id="F_ac098bd5-e950-4d9a-9e10-95e63b0fd825"
      unitRef="U_USD">5310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>