<?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_6c233401-affc-42d0-9afa-9133fa41f84c">
        <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_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_bf0a3d31-9ce9-43a4-9fef-0d24ab534eef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_e1048a81-f4e3-455d-b122-374761758e0b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_a4c538c8-2eb4-436a-aca7-159012f96800">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_28967fad-9dc7-4caf-a6c1-707b62e6192b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_369204ea-3131-4939-8732-67ac1939243e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_2821a925-4ff3-4dac-9869-44664be40667">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_6d72f56e-9bf4-4e46-9eb9-623ba441d64f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_87dc3fb8-d5a3-4c68-83f7-1a34e882db4c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_85b9bb75-5cd3-4684-96ed-8b3c40889577">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6c233401-affc-42d0-9afa-9133fa41f84c"
      id="F_58091da1-a36a-4109-bca6-88a716169709">&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;950,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_6c233401-affc-42d0-9afa-9133fa41f84c"
      decimals="-3"
      id="F_5e5cf4d1-a4cf-4a8d-8ddc-64dd70afbc27"
      unitRef="U_USD">950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
