<?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_7da72f9a-46af-4096-9370-a554f8a6fd48">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_e2e3814e-4302-430e-98a5-17045c2d97a5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_d3d94419-6214-46cd-9414-093c43b86849">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_97e98421-04ce-4350-a995-e617d6fc3aa3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_099c2a57-397f-4022-a45b-e33b35129859">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_2b5f315e-ca2e-4ab7-97f1-cedfe94df99e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_07c1b7a7-a6dd-4f7f-8894-ecec1ed1636b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_ab29d126-8983-4d97-80a7-6446f25551c8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_915f10ca-be7b-4e3e-8693-bc48025bdcf4">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_5e3131cd-6335-4e73-9f04-c09d49a1f801">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7da72f9a-46af-4096-9370-a554f8a6fd48"
      id="F_0afec26f-00ed-4fb5-91b6-b744e11ec56a">&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;3,996,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_7da72f9a-46af-4096-9370-a554f8a6fd48"
      decimals="-3"
      id="F_047d5196-e5cb-4766-9027-8104f725d310"
      unitRef="U_USD">3996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
