<?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_f9534a2a-ee06-4316-a710-250bb3c127bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_442a078b-80de-4734-be10-4bc04e496b77">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_d9b3a194-33f4-47d0-a16f-c2516bfa953b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_fb5843e4-61b3-42cc-9eab-db2055c60c81">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_9c5cc01f-eb98-4421-85fd-de55401ba355">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_ee01e21f-01f4-4cf2-855a-4dc23c7fd464">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_e7d66ffc-bb7e-42cb-b7f8-fe1c7630dc45">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_dd7e92f6-4035-43d0-b4b8-7c4699615f7d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_f271ea42-77c4-418a-94a3-9e920a43167f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_ab0af62e-a3c9-436d-8999-f34a9de47f9f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f9534a2a-ee06-4316-a710-250bb3c127bf"
      id="F_345769bf-616a-495c-a513-78def7f00f37">&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;25,968,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_f9534a2a-ee06-4316-a710-250bb3c127bf"
      decimals="0"
      id="F_9b1dc025-96af-439b-9730-73cb595c78d6"
      unitRef="U_USD">25968000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
