<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_17934eda-d217-4fce-b304-3a0286b91e2a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_2e4207d7-e18f-4ede-93f8-be8a589a0e2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_c1c1f116-134d-4a37-87d0-38b971f090a9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_a84e0e8e-4d7d-480d-88c6-c5b67c83e583">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_6be4823f-d36b-4465-9c91-246b24eb1257">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_5b89be97-be2a-4c9d-bc22-b250fe033c3a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_2e1fa1ba-c32b-450a-ad35-4455f3e5efe0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_1b579c9d-803c-46ef-ae53-054ce716a3ae">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_7f8cf4dc-6570-4bd2-a7e3-94e70851e7c4">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      id="F_3defac0f-da04-4e6c-a177-14d3e2fb6388">&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;11,668,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_bcc9ab90-07f4-4744-8dc5-f282d1cb4636"
      decimals="-3"
      id="F_331d75a7-2653-4719-b9dd-c34a031ad2be"
      unitRef="U_USD">11668000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
