<?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_30ecce3a-31de-4485-8b77-4db13197471d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_53616645-08aa-46ce-8c54-7f732cc84267">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_eab08632-f945-4b19-96c6-1eaea63df225">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_a6e5cfe6-e904-4be4-b15c-e447a5f2e3f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_b0f20cfb-512f-44a0-8b62-4570fd3dfe19">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_8a77e731-adcf-4ff0-b52a-d0f1e65cbcbb">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_6bb4183e-7655-414c-a242-c46068c193b9">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_f1afb7a5-4ca4-4f9b-8ea4-143b4d877db2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_2e7d736a-43dd-4a9e-9288-4e0eaff53e6c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_598945f3-371a-4999-a244-b9ed6675bad2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_30ecce3a-31de-4485-8b77-4db13197471d"
      id="F_8317ae64-2e1c-45ad-91e6-b1d68cbe60d9">&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,000,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_30ecce3a-31de-4485-8b77-4db13197471d"
      decimals="-6"
      id="F_f34c1330-83c2-4bb2-ba8c-a01cde6e4198"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
