<?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_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_c1d5e9ff-1726-4526-aa27-73eb13d0982f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_866240c5-f85e-48a8-98c4-55043ba6992a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_251c85a7-b6f9-43f3-bc09-4c2ce2823c88">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_07102c28-d6e5-4a4f-9ef8-a5138eaca1f8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_7b3c1422-a148-418b-9b68-bfb87c9e83ec">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_6fb62019-6914-4353-81e6-476abe6e4ede">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_5d9bc8c8-711f-4553-b405-1e1c5340b7f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_1a540126-ef9e-4042-ab9e-bb78176333d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_1cb2d5e0-7beb-4d99-9365-a0ba14d39734">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      id="F_72d8e41d-5f97-49e2-95ba-83bf910a43a4">&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;4,079,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_cb1a9e9d-27fb-4d83-a6d0-5f04674a337e"
      decimals="-3"
      id="F_f65e0646-32f5-4a8c-a9c7-7b523e3d0d64"
      unitRef="U_USD">4079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
