<?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_849f8a31-3c03-4351-ad91-bcdc263b98b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_032d6e86-bfed-4539-acd0-2791303fbfdc">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_c7e9e63d-8a91-4d6d-a3ea-c6abb97f27f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_5b46c862-eafb-48a9-8da0-7e2ddf05ea6f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_3bde9958-cc30-461a-9fb9-032f87b1cd78">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_518c80db-65a7-421b-ad4b-25b54ad693d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_05c21af9-cd50-4ac4-8fcb-eb9f6c773a83">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_d33d311d-8f78-4442-b74a-31708acb5cf6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_77d01fa9-4470-479f-b710-2ad22886fe1e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_5e052aa0-8450-4795-a1d0-ad455ab72bf8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      id="F_e271ea7f-2d5b-47e9-9dcc-399709a9365e">&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,000,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_849f8a31-3c03-4351-ad91-bcdc263b98b5"
      decimals="-6"
      id="F_1a835a83-f7db-4a67-bfd8-e74d9b23695f"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
