<?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_a084677f-253d-43b5-87ec-4b1e1d313673">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_4ff02d7b-653c-4286-a989-ebafb282fb9a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_8a765a13-a3d0-4446-809b-da7713a84a71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_4d237234-c33b-4245-86ea-aa84095ac08f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_84eaff9a-b166-4c54-9c55-336303daf7ee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_2fe6334f-cb7c-4fdf-8c73-d46bdb22e45a">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_6bcf7bf1-675d-4d25-8dd7-c5b2dd2c043f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_dd3483a2-36bb-4e99-b9ad-0b763885814e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_d40278d8-c26b-44fd-9550-b45783823763">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_c8930ed1-8207-4c7e-84f5-8182107d7ea8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a084677f-253d-43b5-87ec-4b1e1d313673"
      id="F_2146e003-20ad-41b5-af96-c6fa67da02d0">&lt;p style="tab-size:26.66px;font-size:12pt;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;245,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_a084677f-253d-43b5-87ec-4b1e1d313673"
      decimals="-3"
      id="F_b1318512-6e68-4285-b8be-b34764f68420"
      unitRef="U_USD">245000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
