<?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_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_77683b13-b100-4960-84c7-249e0aa83ddd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_6e0803c7-87f2-4677-ac4d-2236bc1b1a8e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_4f8a4762-a2cb-451e-bbac-540a2b9464ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_c07d83fb-0350-44dd-9f73-258aa1889b6d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_69dcc11c-a415-4e66-bde5-37ffdebf6bb5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_8b14aa5e-1065-47a9-9db6-a1a4920e8c08">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_dda4d82e-3774-4a9c-9ba5-a6e1c7cf63da">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_d6b66e97-a3f8-47a2-bcfe-aa2f109aadc5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_65af7f0f-d804-4a28-8551-1b6399afb3c4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      id="F_0bf8b891-1cdd-4bce-94f8-8df70fa690d0">&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;692,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_b5a9a2a1-5ea0-4944-b6c5-03f8baffa962"
      decimals="0"
      id="F_adbcd00b-24cb-40bd-9136-5271e7c36bd3"
      unitRef="U_USD">692000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
