<?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_12572d36-fa50-41e9-85ca-cd52e86901cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_8d343498-44f7-4a9e-9998-7804a16b0991">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_9606c562-a828-46ec-9026-03d999e26a0f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_71e975fa-f713-4df7-b307-6a07655ffee8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_f29b209c-1b2c-4546-beef-92f3b35714fd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_7a165986-93da-4a4b-8cac-f801aa77a640">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_d19b304c-d5f8-45d5-b4d5-c4240a15d612">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_59f5bc23-7f66-4c81-ae8d-27290e10eb71">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_e515d67c-cbea-4db1-9916-42b60ddb4a4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_262b0194-3d54-4f20-b0c3-4c03eaa8d4d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_12572d36-fa50-41e9-85ca-cd52e86901cf"
      id="F_03028c84-7442-45e5-9177-a26daba51e4f">&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;200,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_12572d36-fa50-41e9-85ca-cd52e86901cf"
      decimals="-3"
      id="F_f24ab4cb-2e18-4880-af1e-a2ee5cd66ede"
      unitRef="U_USD">200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
