<?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_f36930d6-2a36-408c-b5b4-2edc7ea13d67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_841ad3c3-6d09-4cc8-8b7c-0b273bb43543">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_93dddbc2-0c14-48ae-9865-49a8759e2564">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_a6cf850a-5195-4406-bc11-dcece4489e8f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_c56dbca7-9870-4ab8-92da-b85d712c60d1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_b291d9d1-fc40-49d1-a383-ba599836ac10">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_83857ca4-7298-44ee-89ca-457e7d971c71">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_f28bc776-b997-4b1d-9933-9dd6b2b3a0c5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_394449ba-04c4-49a7-8d70-d0d88aa76dc8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_c2476b80-8f90-491a-8cf6-25f2be259222">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      id="F_c827984b-1c76-4989-9768-7f0ac2587a5e">&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 $&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,872,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_f36930d6-2a36-408c-b5b4-2edc7ea13d67"
      decimals="-3"
      id="F_1533a50e-db75-4a93-8ce1-3112975ebbf2"
      unitRef="U_USD">1872000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
