<?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_7a7faefa-ce10-414b-bb81-80e091c3a9b5">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_c0d719a7-7cc2-4a2d-a72a-6d3a48171c1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_098a47d9-2061-4cf9-9f10-f9c11adefe04">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_880bf059-379d-4c80-af74-0b37a8e6839f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_cd80a6a2-c209-40ee-abd3-e4e5cdbf7dd0">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_39eefab7-e1d3-4d06-8b44-3175cd7ed45e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_7daab1fd-5197-41ef-9aad-6011db05cb3c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_d6211d35-826d-49f0-9d8c-ba94a2b344b2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_698048ba-99cd-49b6-87e2-f29b3073faea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_c1819b2b-bdc9-421c-838c-ba036b47a7bd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      id="F_12c21ab1-f389-44a5-aaa0-bce302d8932e">&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;5,094,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_7a7faefa-ce10-414b-bb81-80e091c3a9b5"
      decimals="0"
      id="F_3d596463-e353-4211-b9b0-ee1ee909ddb3"
      unitRef="U_USD">5094000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
