<?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_b2350639-65f6-4b3c-84e2-de48842401b7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_1479e254-355b-4fee-b048-e02c2313d745">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_9de5661c-b855-4f74-9b08-73b3ac731cf6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_0e049545-b569-4eab-bf76-00cf61b18a93">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_2aa7b238-9355-48b3-888a-5866a04279cd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_ef212c92-b2b2-4ac4-a942-1101fe826272">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_4c74c63c-eba2-4f56-97ad-a5e71a5a7a31">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_8592cd4d-4027-4d06-87ee-02f277b950d5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_5ebae242-b948-42fe-b7ea-548474e61d8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_c221643d-b341-4e00-846c-e10cea8b8111">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b2350639-65f6-4b3c-84e2-de48842401b7"
      id="F_721398b9-d308-4ff2-aee0-50d74600ddb3">&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;26,275,300&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_b2350639-65f6-4b3c-84e2-de48842401b7"
      decimals="0"
      id="F_2b8d94b5-e082-4ad9-a781-4abd2baa1b55"
      unitRef="U_USD">26275300</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
