<?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_38d35252-ca6a-4531-9d05-ad760c6b051a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_0c051776-4c45-4d36-b4e6-7a3753989cc4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_d808c311-2847-42fb-ad7a-ac5db63ced8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_dc6b7680-8df9-46d0-85b1-4f3765aba857">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_5a20c366-ec53-4536-8de2-56632e9cbc91">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_11103b8e-a1ad-4401-ba68-0ba4a1f73e91">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_9fa1aff9-6c3b-4b1c-8d6a-f15868c02707">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_182814ba-a60f-48b1-bd56-f6568786d5b1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_b2e09b2c-2bb7-4936-b280-23397ae6c613">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_307cd3bf-1ef4-43bb-8e08-7320329e6707">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_38d35252-ca6a-4531-9d05-ad760c6b051a"
      id="F_ac130904-fe51-438c-ba0f-b69db376ecc1">&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,016,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_38d35252-ca6a-4531-9d05-ad760c6b051a"
      decimals="-3"
      id="F_9ef5c6ae-1c93-4553-882c-42add1fc1298"
      unitRef="U_USD">1016000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
