<?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_cae37a70-fa19-417d-bb33-b990681da9af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_34e0a1d2-e1f2-468b-beba-688a3e9db739">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_03303d31-1f80-4b59-b7f7-4a9577ea7ea6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_03c71ea1-e7bf-49b7-b1ef-cc71c9867180">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_0b76a2ab-759c-4a68-83a5-55648b02fcae">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_8d56b2f0-9043-4b5b-b0db-133eff08af95">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_8561cfdc-f6fd-4013-b63e-e4a0b545fd37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_f97cdcd1-5678-418b-9d94-f956335c9e57">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_239d1072-537b-4217-b4b2-1f4e5fcac32f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_2cdf03a6-6f47-4232-a6c4-02fd6ff9996e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cae37a70-fa19-417d-bb33-b990681da9af"
      id="F_410ad4a4-909d-4904-b570-bec4c5fbb4c1">&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;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_cae37a70-fa19-417d-bb33-b990681da9af"
      decimals="-3"
      id="F_216ca79f-3a6d-4b74-a961-015a72bab511"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
