<?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_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_9561a996-a222-4bc8-9b8c-7a308629508e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_8ca35049-c86b-48bb-8b0f-2de31a431752">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_d1412b97-1e64-4474-b2b8-71ceafd64332">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_ec438ae4-d7f8-4ed6-a75c-b7af8479c167">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_6ff30e1f-1f77-44c8-bd9b-07e1f5c143c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_3a5fa7c6-8cec-457c-ae0d-f6d10077d7d7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_cbdee10c-880b-40e8-93a3-7f809c369f81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_54674fa3-a457-4dbf-9c2b-38cb45ab021d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_07fd2725-7f3a-4b2a-9a9f-e7df012868b9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      id="F_209c3c11-fc11-4c94-8fe1-3837ac6ca9cc">&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;670,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_c3042ce9-c3ec-4eeb-bfc4-eaffa6a9623a"
      decimals="-3"
      id="F_578e2454-10c8-4096-92ce-09cb49df65f2"
      unitRef="U_USD">670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
