<?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_4e32ed17-df36-4904-a2cc-1f5134beae49">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_fcfd0ea1-d7ae-4780-a0e4-8c8ebcf8ce4e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_84a0f889-9274-4725-a769-abcecd28de79">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_494c17a9-cf4a-4e25-8172-571334b56073">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_802a7494-f8d1-4914-bde1-179e5bf48926">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_26fef8db-3191-42b0-9725-ce4d61b4e5d5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_84897de9-7a49-4561-b94c-c3eee9f58a1f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_1f271fbf-51b1-472a-99bf-b7ca20d4d616">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_dd25a5ee-c735-4f0a-9bee-4a8567442e12">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_b6d703b0-16e1-463b-87ba-0417c29b72ee">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4e32ed17-df36-4904-a2cc-1f5134beae49"
      id="F_65ae73a0-846c-4f40-8216-ed9e84046972">&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,927,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_4e32ed17-df36-4904-a2cc-1f5134beae49"
      decimals="-3"
      id="F_50061cc1-c5c6-4077-8ed3-066bfe6ff74b"
      unitRef="U_USD">1927000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
