<?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_ebfbe92c-1317-4041-988b-5e629fbf977c">
        <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:FeeExhibitTp
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_5f521004-e44a-4477-ba19-c87061bfe6a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_682679ec-749c-4311-81a9-aafad02e843e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_882cfa40-66e2-4216-8c34-7eca8bb2dc09">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_7ac7f54d-5e08-473e-9a7d-8dc9a4cf2ae1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_cf3c099f-b94c-4aa4-a205-8fc51b32dc74">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_04bad9bf-b295-478f-83ff-1c563a6e8280">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_a8e2054d-18d6-444e-82e5-59b3ec014b80">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_b73216cf-506f-455d-84e1-932499eb09b5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_9a556230-5c2b-45f9-97fe-a7e4841dc6b0">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ebfbe92c-1317-4041-988b-5e629fbf977c"
      id="F_b14ae67f-c12e-4ce6-90e0-f1f433435f43">&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;6,437,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_ebfbe92c-1317-4041-988b-5e629fbf977c"
      decimals="0"
      id="F_6879acf5-9e1f-45be-91f2-a26fbc5aff07"
      unitRef="U_USD">6437000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
