<?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_92b15549-ed2a-414c-a094-f8c960d229d9">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_8bce7ccf-4d0b-435b-b42f-3aceac908499">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_f703e1fa-2b22-43b7-a5d1-02644f1c6d9c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_2d9c2aaf-f9d1-4dfd-8a15-377366bac371">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_e31087e1-f8f6-494d-b7c5-998dd697733c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_657dea77-b6d9-4f2e-8bd3-15d280e6dfeb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_c9475599-55b1-4872-b0fe-fffbbc27f9f8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_9a104aa3-dc4e-4223-934c-a4ec48d3fc59">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_4dc76a60-d046-41e3-933e-b2b59dae66d2">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_10e3fbe1-d187-43a7-8f11-0577c4dd6c09">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_92b15549-ed2a-414c-a094-f8c960d229d9"
      id="F_1aa77c0d-6317-4bc1-8b82-605741af5193">&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_92b15549-ed2a-414c-a094-f8c960d229d9"
      decimals="-6"
      id="F_9b0dcc26-361a-4231-99ad-e7dd0feed440"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
