<?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_f38f5075-9080-4495-b400-790c51b36424">
        <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_f38f5075-9080-4495-b400-790c51b36424"
      id="F_321ca7a9-6a8f-4f69-92e9-d964b523ee36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_4acdedf9-57df-4e7d-88e3-f2fa849964ee">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_c50e49d1-51d0-43f1-ae68-d1bb3bd0298c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_f5082c10-1802-4095-95ae-af662d25a2eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_199d08dc-3bf9-424a-a9e2-bd00e3e8b2f4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_2f884531-d081-4dc2-82a9-90c16b6de87e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_e4ae64c9-f6ef-4e17-a062-d8c02a90c35f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_c28be026-6a68-4f8d-8a94-5348f0af8a52">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_b9da820f-4598-4796-b75d-511b3d928abd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f38f5075-9080-4495-b400-790c51b36424"
      id="F_08c153a3-e9bc-42a8-af55-ae17c488d840">&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;1,035,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_f38f5075-9080-4495-b400-790c51b36424"
      decimals="0"
      id="F_dd81648d-2d90-4a3b-a06c-b92c6f290b88"
      unitRef="U_USD">1035000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
