<?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_575865f0-e534-4c82-ac6c-d5c958f0e9a1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_839ba5ad-02c8-44cd-8003-2551908a3d3d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_b8ae6822-0a00-4862-b943-c1aa75b92b63">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_10654c8b-7088-4cf5-8804-5e8455abddef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_92ea3dd1-8401-42ec-87bb-4f3da02756a2">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_d4ba0f66-ea89-4d19-86c5-4d7e3a465bbb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_b5a7b6ea-357e-4ade-a2b8-d0e6e9822ab5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_037a9bf8-4607-4f12-9cc6-046ee7d5a1d4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_b76f0222-351f-4691-b80a-15f11b817d31">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_ac29ce89-0c80-4147-9bd8-bee51d78e6fd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      id="F_9daa88f7-cb12-47d0-a620-bc79bbf0a223">&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;5,934,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_575865f0-e534-4c82-ac6c-d5c958f0e9a1"
      decimals="-3"
      id="F_1e874be6-4764-409a-83b9-08e9fdfbd2b6"
      unitRef="U_USD">5934000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
