<?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_ef429c3d-d0c5-4760-a3f1-c56de0c99d84">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_872a1ff8-cc9b-4cb0-9df9-4c7db14a0ee1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_64bd7cd9-ee16-4b4e-ac6a-f6d2faa7d9b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_3eb4236b-0dfa-4d10-a1a2-714d6c9fbb28">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_a4b2f5a8-8bbb-4302-9d5b-b436b1812ead">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_23fa3a41-00fd-417e-b6a1-57ec86603603">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_3a0361ad-08e9-482b-b142-018ab9010f5e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_fd006132-e7df-4a3d-b998-391ae66ef94e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_d90bb0d0-02a6-48e0-baa3-0ee7ed3045d4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_89800ad9-bb82-4fb0-a5f5-eeb79fb8a967">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      id="F_baee6518-050d-4f3e-8534-68e52bbc561b">&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;8,006,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_ef429c3d-d0c5-4760-a3f1-c56de0c99d84"
      decimals="-3"
      id="F_68281ca3-292f-4844-99ec-673d94fc6cb8"
      unitRef="U_USD">8006000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
