<?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_0eb8bb1c-66d9-4843-84f2-02d426662538">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_3f05ac85-2958-476c-93f9-92a177c71462">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_8b61e33d-0e35-4f8a-92aa-27ede7b52c99">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_3c99c21b-8312-4a30-b4ef-bbb27f452004">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_e6bf9bda-5aa4-4333-81f1-de35332ceee5">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_511873ee-58d6-4765-a1c9-67f1adbdf147">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_5a656267-a871-43d6-b3e9-bde8aecf1d15">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_7720635d-ca88-4eb6-9c85-4c9aeaf6607b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_a5713a08-1fc5-4ab8-a2c2-a68f735571a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_4da3cb48-ff5e-43eb-8628-bc4e49a97490">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0eb8bb1c-66d9-4843-84f2-02d426662538"
      id="F_ba276a0f-22d0-421f-9daa-aacde3d98154">&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;500,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_0eb8bb1c-66d9-4843-84f2-02d426662538"
      decimals="-3"
      id="F_6fe52a0e-1ccc-4513-9db3-9a5e68231582"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
