<?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_90224655-04ed-4e94-bf58-784c50a72cf1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_77e55937-4766-4adb-8b67-fb9f679e78e6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_ac449adc-80eb-4fe4-a2f2-a80911cc6abc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_1c36c0f2-b3a8-4759-9230-7761f46507bd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_59403d17-9eef-45c3-ab84-4a1285c8f0e3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_7d6705a9-4ba6-4426-a011-09e00bb1f209">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_4cb71ffa-ee5f-47fa-817f-17874d9221db">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_2e33c11a-6e25-4e64-a3d9-d253139f783e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_51924f7f-222f-416b-be91-1a7e4b4529a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_8c06f9ef-841c-49d5-92a2-0fa80044e92a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_90224655-04ed-4e94-bf58-784c50a72cf1"
      id="F_499ac7a4-4d19-4e35-8322-0f6b5a06bf89">&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,187,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_90224655-04ed-4e94-bf58-784c50a72cf1"
      decimals="-3"
      id="F_a535f9f5-10c8-420e-a23a-81cc10fae7c7"
      unitRef="U_USD">1187000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
