<?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_947363a9-d311-47ab-a226-d50df11334f8">
        <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:OffsetTableNa
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_883779ee-def3-4085-8f24-cf7753724754">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_b440d098-a0b3-4d6d-bf57-ff16be611f19">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_c4dee221-a901-43e1-ba8f-a72d3d579c3a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_d020063b-3428-4c39-8856-8b11b505a6ea">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_06fd1af9-4735-46ea-b0dc-117ffff73c56">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_3f615a21-1d64-407e-a239-f25396c05385">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_aafbcf7a-1ef3-4bdd-8db8-7b05013e1baf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_2b864512-531f-4016-becf-db46825c9f4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_0bfd792f-d1ea-4ff2-8880-a8eaf3c0f517">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_947363a9-d311-47ab-a226-d50df11334f8"
      id="F_46a27355-0359-4ccf-bde2-ebc05eefbd86">&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;951,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_947363a9-d311-47ab-a226-d50df11334f8"
      decimals="-3"
      id="F_30cee0fe-bea3-49df-95a1-be48d53c977c"
      unitRef="U_USD">951000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
