<?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_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_015c399b-2bb4-436d-b695-17efe7f59f2f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_96d3375b-95ec-442a-87e0-d5ad91e2180e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_6396c957-9241-4c7e-9e1d-73c25078ae2c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_c8b81031-5f33-4d70-ac05-6cb0b4502e05">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_cf1b16b9-cc08-4f66-8439-88acf4d8d24f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_13229c6e-0fa5-46b6-8187-8fb9dcb42c79">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_28e1b0a8-ff1f-41b0-bba8-7f998e0eb4b9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_93a01f26-cedb-4560-95dc-264c7ec928b3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_a6741065-c597-434d-bea3-16e0aefa4d68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      id="F_49756a26-cc50-4969-8c14-83d4d6cff83e">&lt;p style="tab-size:26.66px;font-size:12pt;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,376,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_4d1ba6a4-5f00-45dd-8c40-ee58ea4b7cbd"
      decimals="-3"
      id="F_0e4f0a57-869d-4510-983d-61606589569e"
      unitRef="U_USD">1376000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
