<?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_3d933219-c81b-4b04-ab03-dd0fff93925c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_5ef1655c-68f7-4795-bd85-68dfe2b544f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_49792f58-ce60-4f7b-9ffd-bfc23048dc6a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_4ece0c08-e34b-44e9-bbe7-1ad1d6d96658">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_cc88a9e8-c3a9-4b78-b342-6ef953fc9589">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_70a6525c-8a61-4f76-bbb1-a935cc4595b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_67099b10-ddb8-45bc-b02e-fd28e7bd85a1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_7946d0f7-6568-4e40-aeed-301e618842c1">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_160495fa-3696-49df-960e-83d9701691ca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_b95b7a50-9fc3-4b5b-98cd-6497c15ba87c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3d933219-c81b-4b04-ab03-dd0fff93925c"
      id="F_b17a27a1-709e-440d-9ff4-ee6e5c0e9874">&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;1,356,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_3d933219-c81b-4b04-ab03-dd0fff93925c"
      decimals="0"
      id="F_4f880a79-215a-4682-9d44-962d492e4a61"
      unitRef="U_USD">1356000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
