<?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_a3b646ae-e034-4fac-8006-5b81289fa06b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_71c8f6d2-da1b-4c76-aea5-e159cf5f35f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_dcc9d771-5155-427d-ab3f-3f5b9d5a9f12">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_3c01d759-411f-4a55-bd54-298ed87a1ba5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_8af620a1-1f2f-465f-b479-a07b4d509037">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_4dae97c3-3309-473a-92d1-c64f0266ec65">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_3cfe4660-9f2f-4369-b3c8-356cd17a7412">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_30e6f2d3-d363-4f00-a14f-c149ad805165">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_5d33d411-6f94-42ed-a132-56a91630874b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_05334222-67a2-4d0e-a34a-4fe5d40b9ba5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a3b646ae-e034-4fac-8006-5b81289fa06b"
      id="F_dd3dba6e-ea51-4c72-b2b5-5daf77eccc99">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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;27,493,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;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_a3b646ae-e034-4fac-8006-5b81289fa06b"
      decimals="0"
      id="F_c9655a8b-b5aa-4b66-ac7a-5477a04a7999"
      unitRef="U_USD">27493000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
