<?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_e8f258af-5de5-4242-8c1d-c64b2b30aefa">
        <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_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_52aaa2f3-ce67-4bd0-930e-a4beedcf0c3b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_936ef40a-bc2f-4af3-abec-b4504c1ff216">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_6a89cc5d-bf9b-423b-86d0-5c075f0320e3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_b563c26e-422a-4db4-abc6-9fe82a9700fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_dc207fae-de09-40e9-a3cc-defb4ef035e0">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_05556281-8481-46e6-8ffa-9e3680ba4dd4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_6ead2c8c-f455-4b80-bcf8-ce6ee15ae943">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_fd9ce90d-0dcc-4e74-a829-addf7e73dab1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_ec9bd375-ebf8-40c2-a20c-669ae31e1d94">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      id="F_23426080-e946-4c66-a329-fb618deca1fa">&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,561,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_e8f258af-5de5-4242-8c1d-c64b2b30aefa"
      decimals="-3"
      id="F_742bbfe9-ceb8-460f-b6fd-186493c16ff0"
      unitRef="U_USD">1561000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
