<?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_4f44b7b5-a27a-4f25-a037-22329ccdb41c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_408343ab-3bd2-483c-b6d6-1f09bb114922">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_6fdd5d08-7dd6-4f8a-b3cf-964ed0cfb1df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_7338d1eb-8520-4e0f-b93c-78191094af9c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_9865f74d-8b34-4588-aa9b-180509080154">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_11ee8513-3b33-42ab-ba3f-e4f8b677b662">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_d1344d03-2a48-42b4-a61a-45e7b6c41000">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_55fdc522-262e-48f5-a529-0f04da65dcec">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_2becae8e-51f3-4d8a-bbf3-25c6ee5575c9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_545139dc-90e9-465f-a098-ae02ae0c9dc1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      id="F_f5235c58-fb18-4a41-9091-1682c74a5ada">&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;3,045,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_4f44b7b5-a27a-4f25-a037-22329ccdb41c"
      decimals="-3"
      id="F_8fb1ab5f-cd9f-4c4a-9090-52857f8b372c"
      unitRef="U_USD">3045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
