<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_217a0144-b570-45a6-8138-4550de8823dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_1c466f0b-ea12-4c53-808d-43e69475fc0b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_251c6f11-d53e-40f5-bf37-ec5007bea4d4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_0da5f04f-7b08-4560-b893-5c5da1726b72">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_cda99835-2e57-4311-9f1e-a0c4c832647e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_5ff568f3-cbbb-4f4f-926d-86daf3c70d32">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_2c7f3df2-0198-408a-89f7-e57046cc57dd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_790f191c-ea2c-4f51-82ca-f47a3364adc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_307cd5cb-4a84-4bb3-8df9-8cbed1d09a78">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_6222cd44-2815-4591-801f-1f2e886e7128">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_217a0144-b570-45a6-8138-4550de8823dd"
      id="F_748488e5-ca4c-4101-b6c3-3fb5962d6525">&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;380,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_217a0144-b570-45a6-8138-4550de8823dd"
      decimals="-3"
      id="F_6e195b16-7bac-4ecc-8d85-b6f0c971332c"
      unitRef="U_USD">380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
