<?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_39c61702-c5d4-4e6e-8c44-917f81145bc6">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_c2fdbc1a-8c61-47c5-b5cd-cdadf64b8ef0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_0b6d0042-b1e5-4577-8956-f04a5948ae77">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_211bea66-9aec-45bf-86bb-8a44f6a06ff7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_bcbb71a1-cedd-42b8-ac6d-b987026b460b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_f9de343d-33cc-4db3-aa04-fe5b618dc2e4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_e8cd3083-453f-460a-99d3-f879202bbfed">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_852498f2-533c-4bb5-bbc6-0626709367b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_05be8351-b291-4bbf-9eba-b3d0e5009a98">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_724b3b38-5389-47c1-8e47-30b6ee1f7fdf">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      id="F_adb9ecfa-b2ff-492c-b647-02ef48b8638e">&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,817,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_39c61702-c5d4-4e6e-8c44-917f81145bc6"
      decimals="-3"
      id="F_8b66804e-af43-4809-b9d1-fc5f562b14c6"
      unitRef="U_USD">1817000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
