<?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_fb838946-df98-43b0-92b4-37274acb56d8">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_51e6a04e-ff38-4d47-aa54-11c687b5f1fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_8706ea32-2664-407e-bb1e-bc588bf16a0e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_72a84275-858c-4f92-bdd1-cd4cb272289f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_0a7c40fb-d571-4f1e-8939-826255370294">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_d92c2fc0-ecc3-4883-aa68-c82dd4592fe2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_262c274d-dbd3-4210-a167-61e6b70fa27f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_07b9b70f-0fd1-4f99-bb94-c737786653e5">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_78c41a09-1b65-4441-9091-4c6893102adf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_a516ce44-de01-416a-84f5-f4e9326360f3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fb838946-df98-43b0-92b4-37274acb56d8"
      id="F_f5790190-e790-4d81-92f3-4b811b2e09f8">&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;9,534,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_fb838946-df98-43b0-92b4-37274acb56d8"
      decimals="-3"
      id="F_837547e8-cacd-4bce-beb5-9045c5682e2c"
      unitRef="U_USD">9534000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
