<?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_e46dd179-d172-43e2-9f62-dd67c483f4dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_47af6ed2-9968-4b7f-b586-fd541ac997f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_076ff5f8-a91a-4f49-9c5a-9f87b6613b98">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_e5a6aca3-d6e3-4ece-b407-22daf58883f9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_88f7866e-a064-4862-873e-8d36e96b9446">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_ee671f1b-9518-40d7-adfa-06a26088a525">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_728e3a12-fd31-44b0-88ca-887b7e9535d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_c8a63eab-c021-4c75-9af6-f3f705ea0a0e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_71f634fe-951f-47df-a4d7-44513c273597">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_69cbf27b-a9ca-48d3-8352-e56849c12458">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      id="F_c7311f4f-7f2d-42c1-a354-bfeb2c6d3120">&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,300,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_e46dd179-d172-43e2-9f62-dd67c483f4dd"
      decimals="-3"
      id="F_d6dbbde8-e198-4449-9bcc-d2901cb8a4fc"
      unitRef="U_USD">4300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
