<?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_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_3906a935-479c-4347-8e83-a3a0a02f50c2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_6766a8e9-6456-4fea-bf71-aedc537f27c0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_60606bef-e1a2-407b-b1f3-8cd38d2ce5e8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_c9209bf4-57e1-44fd-8624-004a32868d67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_b87b5079-f6e8-4658-899b-693bcdee13aa">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_583c6fbf-5033-4597-8a73-e3ee9cd8cb9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_e3f2465b-b835-45fa-9592-407401a71760">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_35252b18-948e-4455-8082-646c33b21984">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_2258c2cd-ca57-4d2d-a7e4-f15433090fee">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      id="F_2fa5e34f-3a7b-40bf-8095-e0992eb07260">&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;204,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_4b23b799-4e5d-45bb-ba2e-4b94564d3a6b"
      decimals="-3"
      id="F_32ebd94a-6feb-40cb-bdfa-6f32182963b8"
      unitRef="U_USD">204000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
