<?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_62fdcad1-8cf3-41d9-9127-2a1728930a84">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_e92d9646-f0b5-4689-93e4-6804bb63cdc6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_6005c9dc-b1db-47ad-b372-bc916029ab2a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_29bb3fb3-2b11-4c59-828d-3ebda2c11f99">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_85d94aaf-fcc5-4897-8c01-ad6c76cf6bea">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_3628dca9-14c6-41d2-a679-de0b7fc7be8c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_a561ba16-e955-4d32-96e4-853778805af6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_ce0be4a6-1416-416f-87f6-86e5f646ccbd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_b9b59b73-3db6-4d5f-91d9-46fc0325c688">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_a1663218-cddb-4ce7-9a7c-6514024d7e95">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      id="F_82a7f590-492d-4d9d-b46c-aec7a74821f5">&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;355,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_62fdcad1-8cf3-41d9-9127-2a1728930a84"
      decimals="-3"
      id="F_757af7a6-2f67-47c1-ad82-63c30db8b838"
      unitRef="U_USD">355000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
