<?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_013ce650-876a-492c-8631-575fb77319d9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_ac65f909-37c4-43f7-a1c3-46f4cbc812d8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_79e8799e-d661-45e8-822c-e1e2731538bb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_91f93936-3705-48c4-86f6-28fba83f5d7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_9dd51689-9d84-47d5-97fa-6202003cb3d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_ebf13bb8-97ba-4bc1-b4b6-56528a38deff">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_4a2260aa-d1e8-40d1-a4c6-ee0cd6620fbf">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_02ca0661-ee45-4079-b97a-5dc9bae9cb12">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_a0d62297-24e6-4030-903a-b795e7a83a27">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_160902d0-3cd9-4706-bdba-7ddf68bee058">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_013ce650-876a-492c-8631-575fb77319d9"
      id="F_aa6b5594-ec0c-4dd0-990f-52c26ae64953">&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,386,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_013ce650-876a-492c-8631-575fb77319d9"
      decimals="-3"
      id="F_dfce80e8-5d9e-48be-8782-9e5821323fbb"
      unitRef="U_USD">1386000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
