<?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_69c2b603-8ef4-42e7-ada5-78ac7f2f9727">
        <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:SubmissnTp
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_e937b27e-018a-4c2e-8a9b-4a86dc5bf144">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_1e7a155b-a6e2-4b64-879d-75743a69d1f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_b9c9549d-1f84-4c8c-8c9e-4e7e33a430a9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_952c9159-9b2f-46a8-a2f0-bf0474d3a8e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_353c91de-2e59-49e7-b306-9b47a4f9a380">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_b6eed06f-3315-4ab5-9e31-813dcfba58fd">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_10fddf68-98bd-46d9-a2aa-e1f11f95d075">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_ca65e2ad-1aec-4251-a27b-62df74bdd6b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_c05982af-dff6-4565-8044-963c4bcb54b0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      id="F_4ab1c50e-c48b-45f7-895a-8d9d77c50c50">&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;380,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_69c2b603-8ef4-42e7-ada5-78ac7f2f9727"
      decimals="0"
      id="F_02df622e-72b4-4aff-a718-4b63b7ba7153"
      unitRef="U_USD">380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
