<?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_ee232723-af4c-4486-af6c-701f1b6d7c32">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_aedac126-4eaa-4589-840a-6b88911795eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_14d9a9a9-c874-4e28-b02a-bcc28036a160">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_214f658a-bbac-4ce7-bc2a-bc7c318968c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_ad7f94ea-f1d7-477d-89fd-2c295df5b065">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_b93c70e9-78c5-46e0-ae31-2316ef92046f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_b48780c3-e98d-497c-a23b-7aa438ce4e8a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_d478bb63-fd53-4c1d-85f7-34a07ca857ff">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_e10425c4-f032-4fc1-8477-12a93dc1a29c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_709c2f12-6aee-415d-b112-ef624b2126d0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ee232723-af4c-4486-af6c-701f1b6d7c32"
      id="F_613d211b-65d1-4031-bdbf-d928d0c311b7">&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;16,106,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_ee232723-af4c-4486-af6c-701f1b6d7c32"
      decimals="0"
      id="F_7c131824-39b4-4e80-9c55-9d4519c30325"
      unitRef="U_USD">16106000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
