<?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_33becc31-a272-4e05-9e59-cc0c96f546bb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_3ce77892-4154-43c7-9424-61b131d81e26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_947d9223-7cee-494b-88d0-4b2ef8a7dead">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_a379378b-cc2e-4dce-9972-9a5ab0f1d6b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_f9f80caf-f583-41b6-90f6-79d1ebdde32a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_58262819-8934-4db1-b142-113edef7dd55">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_2b3ae451-702c-4529-ac16-459b2b170031">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_9b8ad517-c3ca-4e66-aa1f-69cb713a3adf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_0d37bddd-d5f0-4210-8bac-6586da91a424">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_9d24d044-6106-434c-b073-a892fa87d7e2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_33becc31-a272-4e05-9e59-cc0c96f546bb"
      id="F_b634c504-1662-4fb0-8135-fb666f9d6e5d">&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;500,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_33becc31-a272-4e05-9e59-cc0c96f546bb"
      decimals="-3"
      id="F_cee03c77-6b42-4669-8410-96ebca58f1fb"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
