<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_5210d88a-6790-4281-9825-9c87fd284a2d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_e6b90db1-dd10-4cc0-992a-92e5ba552254">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_44083531-0083-48b9-b36f-349d15b90400">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_2e2fed28-d9d6-482d-b823-856541eba00b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_ee467008-6592-42b0-85be-0bc58bd42acb">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_e92bcc8b-4566-4bed-a591-07c347283c74">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_483bc4a6-5e98-453a-82af-a7b54f9c42ff">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_e02c7f6d-cea2-4d35-8c5f-59901251ebe5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_a617073f-f750-4333-9107-796e94282f95">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_664897ce-b6ea-4613-89af-58f66e8815d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5210d88a-6790-4281-9825-9c87fd284a2d"
      id="F_167f20a8-1d6f-482c-b164-973379a09767">&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,420,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_5210d88a-6790-4281-9825-9c87fd284a2d"
      decimals="0"
      id="F_de0d2cad-b155-4c82-a0b2-238d75038489"
      unitRef="U_USD">1420000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
