<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_5b30127b-29ae-4e16-8a69-0707e22180cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_d73175cb-50f0-4314-beb4-9e46d862db05">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_d4e34310-aff9-41cd-8cca-eabca0c0dc43">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_e10ae761-25cc-44d5-9643-73c33f9b674f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_2795a558-6a22-4f8b-b6a1-5e633285600b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_e06c3a59-5863-4241-9a91-160bd8d14b80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_7d84446d-ebeb-423e-8455-c338741dc6c3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_1022bf66-0688-4146-a80d-35dfdb2904ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_e5e285d9-4873-4efa-93ea-093bb2bda30e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_96ef5856-4334-44fb-a066-cd79db830be2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5b30127b-29ae-4e16-8a69-0707e22180cc"
      id="F_9cd9413b-e331-4831-a491-d212620e60ba">&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,768,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_5b30127b-29ae-4e16-8a69-0707e22180cc"
      decimals="0"
      id="F_1fd6b823-2d34-4f78-a633-fc7f8b405d6d"
      unitRef="U_USD">3768000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
