<?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_d719b329-851a-439f-90d2-c495314d9438">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_8c0c626d-4165-4c45-8565-d17dda096610">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_3c553944-e89e-47b6-b666-3a33887adf9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_d9df6d1b-b7f1-4abc-8ede-fd9f67b69bed">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_3feb22ef-c8ea-4053-b74b-e9bb31612f17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_c1641d80-fb10-4ff5-b178-084aab84fb70">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_019776ae-d1a2-49de-9b77-f2631acd2af0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_59d8a9d7-a391-4f09-9efc-ea452852a325">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_73f64513-d146-44af-8628-d00723895464">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_ade54c47-8862-4b55-a4f0-6279c5876261">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d719b329-851a-439f-90d2-c495314d9438"
      id="F_2ba21ee8-4015-4455-8c32-820f0469eed8">&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;662,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_d719b329-851a-439f-90d2-c495314d9438"
      decimals="0"
      id="F_b48d5d7b-4e53-49ae-b411-493a53f4641b"
      unitRef="U_USD">662000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
