<?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_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_e3861dff-4127-4004-978c-c47066c68519">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_f0f664f5-d664-44a7-9c87-95f84e659275">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_2b0619b9-c9b7-4ee9-bced-bceb8305e9b4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_4b310cf2-715d-4b9d-b8e7-07e10a678dd5">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_2a441b7c-2a3f-452e-808c-5926242c175f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_3486e9bc-dd4c-48b9-8884-1f2dfb7f0ba6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_3fcdf10c-3252-46fd-a478-e1ffa3e7418d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_f6bdc91b-c39f-4b35-a6e6-89b2b8c4fc36">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_e4c5e3bf-2706-450d-b97c-cff2ca9d1b08">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      id="F_3a364d42-2214-4de6-9274-609863ce0e7d">&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;6,000,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_626f99a5-612d-4bdc-a84e-e3b5b3e61f4d"
      decimals="-6"
      id="F_e8d25179-03cc-4769-bc6e-59f75965c29b"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
