<?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_7c939194-4ba8-44ea-bd86-f57f7ceb611a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_f00f0f93-6844-47d6-a21d-a37cfc16a3fc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_9efdc614-7ea5-4edc-844e-e44cc790d175">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_8b3244f6-de59-4208-ad69-46147d1a14f6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_f3a335cc-bf7b-4dda-a74e-28655e828fec">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_7e219cf1-3dd6-4cf0-9e20-b1ccc4ffa8a6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_43468c4b-1ec1-4036-a2a5-2030d08f683b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_437811c8-cac6-4475-8281-58e6d48e2aed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_5571e1ef-b731-4626-af8a-468bcdafdf5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_459c0042-16d9-481d-8c82-0a73b7617cf8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      id="F_e4ea3fc0-7cfe-422a-af26-b3e35c474ec6">&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,588,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_7c939194-4ba8-44ea-bd86-f57f7ceb611a"
      decimals="-3"
      id="F_9cb931c1-dec6-4ae2-8e46-e70a7fb053d1"
      unitRef="U_USD">1588000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
