<?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_084082be-1519-4f02-867c-37c3d51c1d69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_6ec7e0b3-e40a-4c57-94b9-bdade79bcd05">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_8ee8b22f-3b69-45b2-a980-708757e53cd7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_04be0589-82e8-4afe-9a76-8bcaaab091ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_066e9f18-bad1-457e-9733-be7b77265de5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_c722a38b-d5f6-4ac7-bdd2-0495ffd29e30">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_1ced93ca-766d-47ab-8536-5507f2f1a6e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_494ea44c-b5a5-4d47-968a-1593572d02da">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_fcf116e9-e57d-4255-ae53-e63d58ce965d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_85a9eda6-f79a-4391-a1bf-2091d4f4cde6">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_084082be-1519-4f02-867c-37c3d51c1d69"
      id="F_0d6fceb3-a0b0-4494-a916-91b78c7e09d2">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,036,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_084082be-1519-4f02-867c-37c3d51c1d69"
      decimals="-3"
      id="F_3f853e8f-1f2c-4477-acd1-b55ea3b21720"
      unitRef="U_USD">2036000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
