<?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_7295c3be-167c-4d1c-a88f-a7c1c47b903b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_a7f84ce9-d5c2-4f5f-88e3-efaf7baa0734">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_f38e3da9-b0ab-4c52-b591-b307b090e831">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_00dc6409-6917-4222-9dcb-0abdc39edb9f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_ba34903e-bc56-4bcf-9da1-f3676134fa6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_a9905c9a-1090-4d17-b83c-350ac694ccab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_e9b351b4-06f6-4663-bb4c-b8678f6669ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_279dc8bf-515f-4680-a5f7-50ebc2036a8a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_962245df-a375-46ff-97ec-5d61294a5106">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_bb26bfe1-26bc-461d-be37-4b0be5ea0760">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      id="F_539335d5-ff64-4863-a53a-fdfa26f8b0e7">&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;7,260,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_7295c3be-167c-4d1c-a88f-a7c1c47b903b"
      decimals="-3"
      id="F_ac96b11e-3e07-4080-9494-4c650dca326c"
      unitRef="U_USD">7260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
