<?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_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_f5822073-c8b4-4c75-a712-cb452b92fc4e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_2e1f4837-724f-43cf-9977-115cc09d88a6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_d61efb8b-42d1-45e5-bf1f-a0cf4f483c61">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_a8677b18-f230-4244-a638-70aa414a23c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_e0389248-28b1-457a-969e-79534633ece6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_5ec0a55f-80e4-46b0-bd72-136ff2d9845a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_9998185c-8bb5-477c-aad2-844c38554ac9">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_747808f3-b7cc-463b-b723-f85ed9eee224">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_06a99965-e306-4868-a7c6-40a5e53b0911">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      id="F_7e6e007a-91b2-4b75-abb0-01d928568ff2">&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;886,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_abf6ab36-1ebb-4d94-9b9c-2ab77efdc7e0"
      decimals="-3"
      id="F_f1807a33-0715-4161-afff-7f2b535475a0"
      unitRef="U_USD">886000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
