<?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_27320d86-3ecd-432e-af87-76b11ffbd621">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_9493117d-a1f1-4d31-aa2f-12d949e8896d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_f3e74015-3aa3-42d8-8519-2259872b7949">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_77a5841b-619e-49e7-a11a-d28433909643">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_cef41ffd-230c-48ff-ba65-6ee23c8cb645">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_208d103b-644b-4f7e-9ebf-42a7fdba2d1e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_31930cab-ef76-428b-ae39-f731007085d7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_9d0f53fe-370b-46d8-b3cd-31f151774959">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_45078cde-6b4d-4752-89c2-b6f59c95bdcb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_d8cdaea5-eef0-4ad1-8a85-2420b977547c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_27320d86-3ecd-432e-af87-76b11ffbd621"
      id="F_5e4fb0f4-6fb3-41ac-9674-93b94feff410">&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,529,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_27320d86-3ecd-432e-af87-76b11ffbd621"
      decimals="-3"
      id="F_74a1c352-bde4-4b89-9fba-2a8dc2b0aa52"
      unitRef="U_USD">1529000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
