<?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_4764a010-d6d8-48fa-965c-d664eef88e7c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_61d67079-a9d9-4367-beff-1fc13843eb3b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_6b21f83f-3936-4bd0-91e4-f7f7ace21350">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_740196c4-86ff-43e6-9a40-ab8104b9b56e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_f5c9bc8e-d4b0-4186-8891-85735857790d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_be089e29-cda9-4dcf-bb31-c7033716491b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_d21a6d14-440a-4ee3-beca-5d06047669da">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_1aea97d9-c2a7-4ab7-8d08-0bc2e1746e81">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_fb1736b1-aa69-4e81-b7e3-40e64628eb48">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_8243eb1d-cf58-48f1-b705-fee5b91ba6a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4764a010-d6d8-48fa-965c-d664eef88e7c"
      id="F_e7b48bb9-c774-4342-a8ab-dc65cc6e783b">&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_4764a010-d6d8-48fa-965c-d664eef88e7c"
      decimals="0"
      id="F_040fb546-bb51-4f95-af79-036d2beefef3"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
