<?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_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_233a1f9b-922f-4153-920c-d94398f7da7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_0c3ffdff-d52b-4941-96ea-64d4b2f478bf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_52f677fb-b462-45c4-9d40-744bcf02f27a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_9e107271-fc2e-47dc-b0f4-9c069d3737c7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_97819414-94d1-4e03-bbc8-f7d715550113">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_445a89c7-21a0-4c19-aa26-2a4eb7dd40e3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_d1eda20a-ff87-4e2b-a058-cf47b9007041">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_ff6c9367-b4bf-4e57-a564-02bd9931cd68">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_cd0fbfc0-d684-4001-a01b-51d5dc80e362">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      id="F_451e499b-1f72-4f82-8392-70fffbdf3136">&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;476,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_aba98fb7-db92-4ce0-aab5-a2f2b56e5bac"
      decimals="-3"
      id="F_f8fc05ca-972a-4481-a0b1-93a0f5150f34"
      unitRef="U_USD">476000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
