<?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_492b726b-1c71-4dc9-9a70-73735f896619">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_99d42c9c-6e90-4d1e-9a2e-cad4311f7d88">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_a893794b-48fc-47ea-8c3b-216e5de70c5c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_6f71c0b6-39ed-42d8-8063-425dc865af8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_2f196924-3e8f-4c08-9b82-4ae8f52a7fc5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_c63e59d6-4555-4db8-b22f-890157ee8d25">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_9822b395-e273-48d7-b98d-98e3536dd9c6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_37d6ca05-ddc5-4dec-b163-fe92cc793d46">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_4f1a2fa2-a56a-4786-8579-68d7c63eca09">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_2f0e8680-ba48-4da7-94df-ca711b39ee33">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_492b726b-1c71-4dc9-9a70-73735f896619"
      id="F_118e1e92-8f25-4ff6-978d-7f5e9ce5e2f6">&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;767,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_492b726b-1c71-4dc9-9a70-73735f896619"
      decimals="-3"
      id="F_46a24ee4-1a20-4dda-be58-c7477ec5eb9e"
      unitRef="U_USD">767000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
