<?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_81ff83ca-8626-4bf7-823a-81d014a75670">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_421af1fa-403c-4466-a446-cf75abac9d38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_ca821e45-b253-43eb-8fff-70cef4b1730e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_da2acc06-800f-4410-b817-db67f99044b1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_0e30a759-c657-4b4c-9869-ab885b51a2ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_6c309b52-c53c-48ac-aebf-f56bcbe4961d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_61ba6d37-ddbc-40b7-9dea-cca3aaf0e8aa">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_e6246a7e-a223-47ac-ad18-6d25dc901ee3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_397da061-dc8a-4ce9-996a-8e56b6a83e37">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_1339619e-fbb8-4400-8a3d-40aa4b55acd7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_81ff83ca-8626-4bf7-823a-81d014a75670"
      id="F_8df72671-618d-4df9-a5ba-9dfa2f76bbc2">&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;100,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_81ff83ca-8626-4bf7-823a-81d014a75670"
      decimals="-3"
      id="F_52626604-23ad-48fc-be29-f2985853d758"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
