<?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_c3a361a2-e0a9-4489-b488-9bf78fd67b34">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_90e550c2-604a-4860-a39e-7fd4b7349e95">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_2e29797a-fbe1-4d73-9155-57f0f29076dd">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_33575672-e9f7-420e-a9cf-7aa15dbcf212">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_3d8e6978-13d8-4cfe-ba05-40d54c6b2fb9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_f6b9cb44-de83-4ee4-b4ac-28307c137c2c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_d134b874-0f59-439a-8524-c764cb097618">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_5f0c6e89-ca3d-4354-919c-cf6d601f5beb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_a9397d86-7a15-4eb8-b962-d711266f3738">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_f93efd73-cd03-4a61-9de8-0dccf68702e6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      id="F_c2101f83-06b0-488e-a400-10a784414cda">&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;4,576,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_c3a361a2-e0a9-4489-b488-9bf78fd67b34"
      decimals="-3"
      id="F_2951a0d1-f335-4617-9fb7-ec1ceacff470"
      unitRef="U_USD">4576000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
