<?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_8d3e3c14-6df2-4681-a58f-ee315b25fd51">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_ea701748-9e32-46bb-8adc-84f819b6eca9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_949b0c5b-20bf-4e9e-8cdc-abb919c12007">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_20dfc356-ef58-4b16-9188-d09eb527be05">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_384f9633-4df6-402e-9ff5-30a2cb6acb8a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_4a3889a9-b83a-4c99-8438-fcc7b8b5c238">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_94af7aa7-e34e-4099-b88f-221430e947be">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_cbb2d27c-83fc-4f63-9310-bfec303dea1f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_fd4b1b7d-ad11-4113-b8fe-c9c1dc43584d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_9bcad93c-e5a6-40ba-969d-3d69f3cbc6ff">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      id="F_25188c2c-d8ff-4aff-94a6-147e38ed25a4">&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;16,778,500&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_8d3e3c14-6df2-4681-a58f-ee315b25fd51"
      decimals="0"
      id="F_ab210997-3feb-445b-8e0b-cc55ee89a44f"
      unitRef="U_USD">16778500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
