<?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_c22d1e84-49ca-4779-957d-c302fbe7989c">
        <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:SubmissnTp
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_c087186a-88e5-4651-8a84-2461916cd1d2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_53638a76-7fe5-4446-822f-d879b55af3b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_f56349d5-e913-448d-adc9-564926584a47">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_4b393bed-8985-48e5-a1ea-43706fea6059">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_ffc2f114-a82d-47db-a3cd-710e8dda32d2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_67b8cbeb-3f1f-45f8-b7e4-8cced329be57">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_5fd530b2-b9e5-4a2d-bd75-e63a606cbb36">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_89f462c4-8824-4105-aaff-e0b78afbe408">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_c96bea73-2d3b-4e2c-920d-c5ca67fc49ac">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c22d1e84-49ca-4779-957d-c302fbe7989c"
      id="F_810a7e1a-ce30-4f77-b78a-4a4afc14c470">&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,746,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_c22d1e84-49ca-4779-957d-c302fbe7989c"
      decimals="-3"
      id="F_34463b49-917a-4b4b-874a-59cd36fa42ee"
      unitRef="U_USD">1746000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
