<?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_3bb76d14-73ec-4c72-a174-e09ee11ea93b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_e391ae78-2721-4bee-aa14-a74572296e68">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_215f0f73-7985-4fe3-aba5-df80d1d8eaa1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_92b8a89e-d349-4e13-b363-5d584e6f4593">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_a0907546-514b-4c4a-ae64-87db50aecfd2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_9fb81391-6cd8-4819-937b-81a73d98717d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_ba7531be-fe0f-4c4f-8b2b-cd787cff75a3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_42f00da5-7042-470b-9a1a-8bd828d2e321">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_d63da66e-5b92-45eb-85c6-752a5be41fc5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_83c16b8a-933c-4deb-84c9-783a912bb021">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      id="F_5389e280-3591-47ee-8c2b-ab27eca06d5f">&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;5,310,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_3bb76d14-73ec-4c72-a174-e09ee11ea93b"
      decimals="0"
      id="F_5bf2a4d3-54b3-47ba-a2b8-0631d0f63251"
      unitRef="U_USD">5310000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
