<?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_dafdf1e6-6465-4db6-86be-612df3279351">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_c4f766b2-fd47-4203-a0cd-610132e5933f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_b90aa616-52e5-4772-b68a-a6206a8054be">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_99ce3ac7-ce08-4810-8e86-acecd5a88734">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_a06ed982-6e79-446c-b2d0-372dfdcb2907">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_e807988a-3e7b-48b1-a993-b8677b04b162">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_9bd7027d-a691-4517-a7dc-b0d531b8982d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_0f41132c-7d21-460a-9bcc-2c71f0679bca">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_9f832a55-c246-4b4e-9e87-7944d167e24b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_6e9e9be8-2044-4e14-9b64-c4c59e17ac02">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_dafdf1e6-6465-4db6-86be-612df3279351"
      id="F_c14a38ca-2c26-4831-affc-9abde26b3caa">&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;68,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_dafdf1e6-6465-4db6-86be-612df3279351"
      decimals="-3"
      id="F_69b28d33-9ef8-4123-acd6-2e4e3cc882bc"
      unitRef="U_USD">68000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
