<?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_ddada5d6-8119-40b7-be1a-e774a6c6f07e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_069d120c-a19b-4650-96c3-e3c86450d627">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_80214416-a97f-40ef-af59-bdb53ffa280c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_5a83f82a-fdce-4bd2-a6fe-07f735817a8f">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_f88f2b9b-bb19-4a15-b3ba-7bec93ae8937">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_bbed05ae-1013-431b-95aa-21c26928d93d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_492cc9a2-d524-4adc-ab12-df98f0cacf5d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_12051801-d096-4787-903f-701e3f7c6424">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_4958f27d-1f51-49c2-a9f2-ee63ea9e8903">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_75e475ca-7980-4126-8265-ef698e99c750">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      id="F_dfbd1317-22a6-4262-b830-c80b0ed4ee55">&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;3,201,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_ddada5d6-8119-40b7-be1a-e774a6c6f07e"
      decimals="-3"
      id="F_56294d3e-c035-47d5-8ba0-104eab713200"
      unitRef="U_USD">3201000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
