<?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_fc835197-8340-4799-81fe-2888c9e6c7fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_a5f232e0-afef-4682-9be8-80d168d00079">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_874b1a6a-bf28-4b27-bd0a-5d78750c0f7e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_6cd8c492-8c37-43d0-a4c7-738c52255953">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_e6d2f0de-1a16-451d-af4d-1b1e8620e49b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_7dc9ebea-cf0f-485a-9466-0113db7f92a7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_695fb894-2403-4c7f-832a-e48b35299596">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_af8b7f59-106a-4089-b458-2de26eeb509b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_c98253bc-6b0b-43e8-b19e-89496a6268ab">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_c4393a75-961b-41b2-ab8d-b5eec8c163e0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fc835197-8340-4799-81fe-2888c9e6c7fa"
      id="F_4a1cf747-1bed-4f78-8ed6-0cbef0065228">&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,676,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_fc835197-8340-4799-81fe-2888c9e6c7fa"
      decimals="-3"
      id="F_fda37441-8098-4555-8613-4af81a99f3c6"
      unitRef="U_USD">2676000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
