<?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_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_458e3a9e-a664-40aa-82cb-6567c5435169">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_59077e67-bce3-438a-91ce-89a38c40ba8d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_4bd7fe44-b288-4d63-b2f9-69373994e237">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_6347921e-f203-4336-897b-66d305d04ea2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_40c2eecb-f248-482f-92f3-1f4fb5865be2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_9c8e43d5-f844-4405-8c18-a9d17c94f6db">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_cf1819d6-9e20-44df-b29e-ba3d75637ef9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_e3537fd2-9a96-450b-8f00-fc32c5fa4d9f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_9a13f932-3355-4f03-8605-cdb564d49f0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      id="F_224ca6e4-9e13-4c78-830c-b783fb47974b">&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;3,973,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_c6d727ae-dc5a-4064-a5ea-c9ed0ef02280"
      decimals="-3"
      id="F_cf1aa5b7-c99e-4317-8f84-3f683cf8e8c6"
      unitRef="U_USD">3973000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
