<?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_19bf5ae0-6c99-4eed-b114-4697f959d16d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_b979adeb-eaa2-4ca3-af03-e51201e6f822">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_339c8348-c43a-4f32-9b6f-ff1f3297d2ab">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_1cc9581c-7cb2-44bb-b2e1-afc34e0b64d0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_2c983527-5e3d-4196-8bad-8f471153162c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_7ceab7cf-40cf-4173-9780-b6b3ae7dd2d5">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_b9c25ad6-ce11-42b1-b8c8-6ba0acf13a21">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_91b7857d-0109-4ac3-8b85-a1f8a0c593d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_c9f41d93-8085-4302-bf4e-1bd34d33486a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_db2fb27e-f398-4294-b702-c958d28bc9a2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      id="F_c1348b99-9a37-4013-bf62-de385ae16664">&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;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_19bf5ae0-6c99-4eed-b114-4697f959d16d"
      decimals="-3"
      id="F_b5a7374b-9720-4fd7-8be8-2351b1781698"
      unitRef="U_USD">204000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
