<?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_5b82fca1-78ef-4220-9d87-cccc0e92e7db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_5bc0ecd9-4c0e-4fdd-98cd-dad4efcc6265">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_fad0f937-15c2-46b5-b8f6-c36417816a60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_78f3cdc2-e9be-427c-8552-dfd095bcaeb0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_ee32941c-419c-4175-ba44-1c9560609e13">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_27f0aa49-1d9f-4970-92eb-86224e6e8f5d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_c71099df-a638-4a3a-9b68-e1480b863090">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_c65055b1-16fb-4bde-b174-3fca0c400ca1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_253ee82b-265d-4117-bee4-1a941651a211">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_7eccbdab-c0b8-4d0a-a4da-36e6e483665c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      id="F_9391acf2-af23-4cbf-8fd5-f209f0134f8f">&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;1,000,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_5b82fca1-78ef-4220-9d87-cccc0e92e7db"
      decimals="-6"
      id="F_8ebda895-9d67-4d28-877e-c40f96deba35"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
