<?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_5c446a06-24e5-4976-9b3e-2057f00cf756">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_9a410874-4f56-42a0-ba47-3ec50f448429">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_526d8a6e-7e34-4c49-a22f-2a3bffcdb3a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_c3738a48-e038-47fe-922c-7c5a6434086a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_e9288ff3-24b6-4c9d-8628-16a68593b81b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_583f9125-5147-40ec-b8b6-9213a1f9c607">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_6ef253ca-9fd2-4ed8-81a9-f998f6077eeb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_8fdb8ccc-78ab-4329-825e-37d468c97127">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_101b8948-335e-40d3-8113-7cea1b736dc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_b505b4f0-124b-4940-a50c-6fd5fd87c72b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5c446a06-24e5-4976-9b3e-2057f00cf756"
      id="F_81950a9f-0cbb-43f5-8c6c-0d4e0bf82fb4">&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;2,045,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_5c446a06-24e5-4976-9b3e-2057f00cf756"
      decimals="0"
      id="F_f02ce4ed-c2fe-4592-b5e5-f492bb0b06df"
      unitRef="U_USD">2045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
