<?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_be932557-a657-409a-b4cc-1ba37d075dc7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_948bd301-a6dc-43b5-9128-10e23728fec4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_8d43448c-2a29-4109-8e21-151aba0f8047">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_2d7ae450-f180-4458-a800-f776d9124662">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_63217153-0b80-42b0-98de-d91202be4aa8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_02258ec5-91de-41e9-8626-db8922ca0e55">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_10536df3-5cc0-48eb-9841-ee271b3ce6c6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_ab8ad75a-0a6d-4a94-9213-e98f2bc0614d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_47787dcb-97d5-40c2-9510-84e137c101f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_f7ba889a-61e8-4bab-b23a-764fcc76517a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_be932557-a657-409a-b4cc-1ba37d075dc7"
      id="F_f8272186-5789-4734-91e1-4d05ce59e017">&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;870,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_be932557-a657-409a-b4cc-1ba37d075dc7"
      decimals="-3"
      id="F_63c64df2-c6e9-4317-aff7-460880894b8a"
      unitRef="U_USD">870000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
