<?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_232d3c68-264d-43bb-9412-03ea511c4d7a">
        <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:SubmissnTp
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_02fb466e-b657-4f23-a2d3-76438c82c9ee">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_7c1cc2a8-9db7-48d9-a533-29b150fd5469">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_0d35a7a6-f3cd-45d7-bd02-cd477ac207e2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_db31f4c0-6a4a-45ac-8d46-7b0dc21cc6ec">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_af772d3c-9699-4a56-a1dc-9d5443c0df3d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_e3a2ea1c-e073-45fa-9f4e-556eaf80e7d3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_198caced-36b2-484f-a68d-566c662824c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_ac004365-3108-4fc1-bae5-ab3c32c03208">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_6f922f0a-b3ae-42c2-b4fd-627c47147b6f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_232d3c68-264d-43bb-9412-03ea511c4d7a"
      id="F_827c5dfb-b9d9-4aaa-b19f-5548dd67dcaf">&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;6,193,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_232d3c68-264d-43bb-9412-03ea511c4d7a"
      decimals="0"
      id="F_4ae67a12-ee42-4a22-98ed-6a37a8e1b2e0"
      unitRef="U_USD">6193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
