<?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_fc5dd1cf-1821-4a65-9961-a15723b182da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_497fde89-d999-479e-a40f-4110180023f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_03514943-4e02-49e6-bf50-2e4aeea3ac4e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_2f632ccd-71ac-4042-99da-33413bedd014">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_21440cf6-d3b8-4b04-8b8d-b79863dbc381">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_c88d8db4-8bb1-470c-830b-b03e89bcb1ad">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_87dd5ba4-b819-4464-b20c-a8b56608880a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_ab04c0d0-37f8-4b19-841e-dde5bf548d4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_a9dfe5cc-b8ab-44ec-9531-8ef8e835eb02">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_1ef07bf7-145b-4dba-816f-2bd9f3aa8326">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fc5dd1cf-1821-4a65-9961-a15723b182da"
      id="F_9a871922-e887-4c0f-b9eb-ab36812e828b">&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;525,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_fc5dd1cf-1821-4a65-9961-a15723b182da"
      decimals="-3"
      id="F_12716a0e-a840-49ca-9fd0-ec348e1d4ed9"
      unitRef="U_USD">525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
