<?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_4dbdc5b6-2ebb-4073-bba5-4639b1955803">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_374793f1-5acc-43fc-88d6-7b5e88a642df">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_cafcdc1d-446f-42ea-9912-af58acc6293e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_8d45428c-bab3-4289-9955-3c1337cc41e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_7acdf2e6-ae3c-45e0-91b1-c73404cd6e66">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_228a6bbb-73b8-4918-a45d-3da77040214e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_d6d460c0-7157-46ad-ae86-82c5a0fc04dc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_83be4ed2-9c83-4cbc-b676-c78e2d87d0c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_798645da-0a0a-4698-a033-9af3ea89a4e5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_7fb13a4a-08bc-420e-92ea-2f17db56d0f3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      id="F_ee51497c-88b6-41aa-950d-dc51d13a6811">&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;650,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_4dbdc5b6-2ebb-4073-bba5-4639b1955803"
      decimals="-3"
      id="F_786dda9d-43c4-47e3-a6ae-1b45818e7c73"
      unitRef="U_USD">650000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
