<?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_f7f90389-78af-4ea0-be9c-e98e33c5e6cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_7bfc94be-d5d9-4cb6-a231-6a43d76013c7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_c4c1d414-0567-44d8-b5c6-6d6be7ca2240">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_a49402fd-3db9-442d-8f89-6de96da017a0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_15844998-4da9-4953-8c16-650f2c0003ef">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_c25f12a0-8b58-41b7-a277-271b5c540147">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_64d54251-cee4-4a32-9f8b-519f37a73fdd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_5e3d85b8-0feb-4704-ad07-70bae46b2380">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_a2faac26-f1e4-4b44-88bf-707f91874599">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_47804086-6de6-490b-b8a5-e290bbdd391a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      id="F_e2b899df-5a50-470f-a7e2-f391a8558204">&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,586,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_f7f90389-78af-4ea0-be9c-e98e33c5e6cf"
      decimals="-3"
      id="F_ad1a3e05-c116-40bf-95d1-96d3210978a2"
      unitRef="U_USD">1586000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
