<?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_32b1d8ec-4b91-4c47-aa68-1c05cf40a551">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_ae2e8798-aa33-4077-98f9-30cc575ca523">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_4c5efd7b-1574-4ce3-baff-83ff225cbef7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_b933e755-4dd0-4a42-b7eb-f3c09af7e5d7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_57870879-b4a9-4900-8c21-38514aaf389d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_00bc2e5e-fc31-4304-bb6b-cb1a8728ab59">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_31c604e5-a594-4717-8ee5-8c3eb0ea4efc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_809ec95c-ab3c-4804-90e5-c80031879f8d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_8b125ce8-a5bc-45b1-a500-8929ba45cece">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_6641caaf-fa7d-42c9-a4e9-0e1f6ccc662b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      id="F_b9969691-569a-47f3-a198-0086bdae64c1">&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;338,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_32b1d8ec-4b91-4c47-aa68-1c05cf40a551"
      decimals="-3"
      id="F_1affc0fc-cd01-4756-91fa-9da415efc77a"
      unitRef="U_USD">338000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
