<?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_bcea7d8a-cd2d-452a-9aae-22e7f1699383">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_ba61b47f-411c-456e-b44e-05fe747bce3b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_c903e207-e168-4f38-848b-27b38c2d33be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_69bd6f5c-c542-4057-8766-3730f4ba303e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_0c646456-def7-4e95-9a02-f924325875e0">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_4c7f444e-e0d7-4137-9441-2b20586ad528">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_0f84bc33-55c4-4c7a-8e9c-1265a6f09ccc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_1bcadb7d-13a7-494b-aceb-57e3584daf38">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_8ab9f04c-9921-4391-bb20-a13983d216b8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_318f639a-6e84-4fbd-a668-7896f0f78a12">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      id="F_e2cd5c59-1318-498f-92a3-c01bdbfac0b2">&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;20,098,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_bcea7d8a-cd2d-452a-9aae-22e7f1699383"
      decimals="-3"
      id="F_7b3b0b75-3772-46dd-ac98-20a537b5ccc8"
      unitRef="U_USD">20098000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
