<?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_1768fd4d-1c80-42ed-8236-d3f11e776d29">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_92302988-ffb4-418c-8b2a-cb0e90be6911">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_6d96f4f7-a65b-4fff-9f56-d7bb4234e262">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_f5dd93c0-ae4d-4f36-afe2-792e16a23d89">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_67b483b1-ef2d-4a6c-8ebd-bdb1604eb0bd">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_f27a9686-86f7-446c-9e29-10ada5763a27">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_ee4fdfc7-0af6-45d2-a777-ccd40a6f04cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_ff9d61e2-814f-41bc-a1eb-b61064816a9b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_6a19d5dc-5a02-4d07-874b-c5c6d72fba9d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_0d82d98d-7b33-4003-93b4-9ef7a1136863">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      id="F_6dcbe457-5ab5-449c-9a20-96d231138a12">&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,669,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_1768fd4d-1c80-42ed-8236-d3f11e776d29"
      decimals="-3"
      id="F_33b0fa5d-b311-4d14-a4fe-50c93f0da101"
      unitRef="U_USD">1669000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
