<?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_2382daff-2e06-4527-bb92-761cdb7fa1af">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_4f3dc7bf-d0f8-4b04-adbd-819814db3f32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_6e1a3b22-0095-4398-bcd9-96634b2ef568">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_d5be08be-6df2-40c1-b653-999146498628">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_e86f3598-f1d5-4fbe-aae0-65384b90b6c3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_3fb8afb9-49db-46cd-8282-be896326c517">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_be49f387-1f83-483b-a474-4c5f1100a41f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_7d4e7f24-6cf3-4b6d-8dc6-d44a12c5f56c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_31c98286-3052-45ce-90c8-3c690e4ef728">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_a0dbfd4b-4b6f-4354-864d-cd7cbbb4ce9f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2382daff-2e06-4527-bb92-761cdb7fa1af"
      id="F_a276ae32-26b5-4869-88c8-4df1197209a7">&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,583,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_2382daff-2e06-4527-bb92-761cdb7fa1af"
      decimals="0"
      id="F_944be749-247b-4354-a9ed-4ad14cacebef"
      unitRef="U_USD">1583000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
