<?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_e939cfb5-513e-4973-bba9-134d271200d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_76a2e8d1-d44a-4db8-9676-4c26f41df7c2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_ccbff555-eb74-4767-9454-7b2a29abd6dc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_26d1a3cc-d8ee-461c-b161-cb44c2480e8d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_d4e6cfca-2712-44de-a50d-f0add1f717db">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_a6cd699c-5061-463f-8ec6-11717505963a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_659d7dc0-9c77-4cc8-b635-e4423a015f71">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_0e2c5239-42a8-47ea-a84c-2fa897c4e98f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_404fe4cb-669d-4b26-b743-9d0537b97a0f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_ebc49562-da28-4706-86e2-335e30de52b2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e939cfb5-513e-4973-bba9-134d271200d8"
      id="F_19e1b167-b043-471f-b275-76483a71933f">&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;7,675,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_e939cfb5-513e-4973-bba9-134d271200d8"
      decimals="-3"
      id="F_b66e88c2-48eb-48e5-8652-7028408ab4f0"
      unitRef="U_USD">7675000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
