<?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_dbd5fc28-dcfe-435c-b859-eae698e9993b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_b2f8104d-4e13-42b0-9c39-d06050825ac3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_d0f8d02d-9d3b-42b7-902e-8a3d05a39daf">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_40a65be7-d2aa-4738-99d5-c9543bdaf50e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_95a40dce-1fc8-491e-9e5f-5cea9d925a39">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_f9a75555-dd91-4e78-9bd6-1901a1352c74">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_677d033f-cec5-47cb-8dae-700c4bd673d0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_85c081af-596a-40a3-858a-7c7339c68ce8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_17149088-264d-45a3-bd0e-9a0064ab924f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_e4fe8bd3-355e-48a2-9492-2ba222e2862d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      id="F_35813f5c-7758-4317-9c7f-1683abcc3ff6">&lt;p style="tab-size:26.66px;font-size:10pt;margin-top:0;font-family:Arial;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is an amendment of the final prospectus for the related offering.  This amendment increases the maximum aggregate offering price for such offering by $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;90,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_dbd5fc28-dcfe-435c-b859-eae698e9993b"
      decimals="-3"
      id="F_b64e6f1d-0560-4aa9-9186-0185a22ce4c8"
      unitRef="U_USD">90000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
