<?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_443902b7-b4e3-44cd-9e27-c2602461651a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_5783b0b0-3214-450b-b726-fe15ef600319">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_1ac80310-f710-4936-9e7b-b506d5c2d6ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_b04c151b-83e1-49f1-9ee8-2181be0c4c61">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_90a69288-af93-49a2-8737-35ba3add7163">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_b951beed-87ac-4ebe-8bcb-de9544a1da75">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_70f14be3-8a24-4e5c-8e93-d1428af361c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_0cda506c-5d4f-474a-abc4-740f5b5ac68b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_48831e1e-d7a1-482e-a649-d981696d6e86">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_60778d59-5058-4143-bc28-79cfde49c48a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_443902b7-b4e3-44cd-9e27-c2602461651a"
      id="F_c85a8434-73ae-4353-ba18-039005c65763">&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;1,656,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_443902b7-b4e3-44cd-9e27-c2602461651a"
      decimals="-3"
      id="F_9e576c20-f157-44e6-9176-607e89758702"
      unitRef="U_USD">1656000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
