<?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_739216e0-64c7-41a3-a501-fe4f94a7f942">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_23326eb2-7d48-4ce9-943a-bd62d6978f94">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_91bc703f-cafc-465c-9123-1b57ae056f75">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_b848e47c-2c1a-4b8c-a715-0d20862b371e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_4ca46ebc-b21d-4ce8-9c7f-e3a66e0dcbbf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_e0dbbc8e-1e51-4b8e-aa77-4df86532c2cd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_a64389ee-a253-47d7-bb15-ab4b6a31036e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_2a4d1339-fcd3-48c0-9b89-fad66783a5cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_1463e5b4-f8d2-4cfd-82b2-feb1d26b6449">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_a2e16057-33b1-4d59-9f9e-ab96b9336ad5">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_739216e0-64c7-41a3-a501-fe4f94a7f942"
      id="F_86f61db4-a411-457b-982f-5312173a4bf5">&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;2,448,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_739216e0-64c7-41a3-a501-fe4f94a7f942"
      decimals="-3"
      id="F_08d1608d-da01-46ee-b817-a59171a4a06c"
      unitRef="U_USD">2448000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
