<?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_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_3cbbe2d0-3868-4666-bd56-e8525376cb51">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_a0a8eed2-ce1e-47ef-a9f3-c51d75c4d282">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_596275ac-c7a8-43b6-ab90-389775670edc">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_ac85c337-0f1b-4cb6-aaed-f2987ccfb072">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_fa2e903c-bf97-4b70-914b-2d4d55f2c01d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_7bf06017-38dc-4fd6-a2ee-e899ce1c5b07">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_5a585310-1e49-4448-9af0-7687d3b636d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_2466670c-9e98-43a3-9dd0-fee5222c3d0b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_223d101f-da6e-4737-86d2-c6c2e22b0305">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      id="F_dd25b36a-8aca-4539-a7d4-b77018a15db3">&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,358,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_d3e58f8b-2e6c-4f18-94e9-b3a3aea11c26"
      decimals="-3"
      id="F_76d25094-0af5-49f6-aba7-a1775b6859b5"
      unitRef="U_USD">1358000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
