<?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_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b">
        <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:OffsetTableNa
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_dc1abfdb-78b8-461d-a18d-5f4adffdd853">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_a71eef95-59b2-458d-b344-38a4131fcefc">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_9015a343-d153-49d5-b91c-b4ca244a1e13">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_939ab55b-aa70-429f-8937-52452ffa57a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_87b2dbd0-1b2f-4942-8944-576f44898919">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_1c264288-216b-46d7-a186-d61b07aafabe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_24e426cc-d72c-4e0b-b82b-0a18c7c0b56d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_cf74bf07-fb1f-45b0-a55d-807f4f361a35">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_b0930b01-196c-4055-9e78-cbd3195c5282">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      id="F_d19e590e-dadc-4967-a393-cef9e8c3e2b2">&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;95,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_4ecb4cd6-ee49-405a-87d0-23fc32f2e83b"
      decimals="0"
      id="F_84b6b2c4-c009-408f-ae0e-8854023923db"
      unitRef="U_USD">95000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
