<?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_b5f99848-f574-404d-aa36-2e1e50367c0f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-22</startDate>
            <endDate>2026-07-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_a55781f0-6016-454a-816d-bcbcab84386e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_049c5831-d28e-4b79-b975-c7e39d974da6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_3941298b-83d0-4972-baff-f111f6b893ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_d29b0d18-57a9-4643-ad1b-8efc6e14b6af">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_026190e3-3043-4dbc-91bc-c0664d1d17b1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_bda0ce81-70fc-44b6-af0a-64b2aba51808">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_3d1110ef-a964-45f6-a03b-5f871dbde752">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_25374d70-5340-4e49-baa5-264b8432f7d0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_5b9116aa-1814-4ea7-8616-9ae905cf71fa">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b5f99848-f574-404d-aa36-2e1e50367c0f"
      id="F_710e7ac8-271a-4dca-b349-458b41409abf">&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,000,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_b5f99848-f574-404d-aa36-2e1e50367c0f"
      decimals="-6"
      id="F_6538c9fd-a138-4800-8b4e-92f16e8eab29"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
