<?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_ebad5bf5-ea17-4261-87cc-bc0a6673e614">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_51371842-7026-4485-a081-67be76a9e6de">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_d750c4d5-b6ee-4874-9efc-eceb098e80d8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_95ef7bb9-c2f2-4d7d-9472-64bbe1356cc3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_eb194124-2417-4900-869e-3e34cf8d32ec">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_50538091-7468-49d2-8cdf-e540eb42565a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_cd940df8-d652-4586-abc7-c8e809320d28">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_c1680b2e-a80d-4b58-8c61-8ba33e7c2532">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_79119384-48c7-4f84-a6a9-3c203e8f9385">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_ad5cb5ca-9d14-4621-ba91-b0d791f1f55a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      id="F_dfe857b9-830c-44c1-adeb-349b64e11098">&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;4,652,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_ebad5bf5-ea17-4261-87cc-bc0a6673e614"
      decimals="-3"
      id="F_a88c253f-fe40-4517-a433-131e1ac192a8"
      unitRef="U_USD">4652000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
