<?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_fb618718-d6c7-48da-9107-32e02652a5e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_4663c38d-3f23-417c-9e44-998e45a7dbbb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_9bf0c546-d7a7-480a-bc03-5e5666d7c6c7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_e0b5a739-072d-4c57-835a-494bd7370f07">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_6fee3383-6780-4708-9ad7-2ae63d1a1504">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_3429386e-e082-4c19-a2bd-85e1343359e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_7ca1aeb8-410b-4d31-8574-605da39f7816">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_92b78e64-2535-409b-8f93-93587f9d6f2b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_1d41c152-aa59-4047-9bad-c95983bf9a1d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_20a303f2-701a-46eb-9c77-a5976399c3cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fb618718-d6c7-48da-9107-32e02652a5e3"
      id="F_a2669d60-c422-4bb5-a69a-6bded4149fa2">&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 &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;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;5,582,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_fb618718-d6c7-48da-9107-32e02652a5e3"
      decimals="-3"
      id="F_63017e30-274b-478f-aa7f-8e8114417789"
      unitRef="U_USD">5582000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
