<?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_ad852d5f-1b02-4b21-9b15-507ca7227041">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_c1a1799a-9377-4cc5-a0e8-724fcac97367">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_a33af221-3e3f-4c42-86ee-10275952b6ae">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_62af6004-1aec-4e95-aea5-47ca2e001b1b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_acd6e574-c19b-42d6-b634-5f21764346c0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_0836c444-2a5b-4e7c-88dc-55e82c462670">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_87feb350-bbed-41b8-bb44-034a9c0d032d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_a9c61172-0479-45ad-8ead-99b66b5cb198">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_a290f7c1-0e67-4806-87f2-83e343322fb7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_73fcdc5b-2a13-401b-8e00-e38da25cf950">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ad852d5f-1b02-4b21-9b15-507ca7227041"
      id="F_d37442e2-c99f-4ffe-99bd-1be9d6b0910c">&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;495,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_ad852d5f-1b02-4b21-9b15-507ca7227041"
      decimals="-3"
      id="F_31410aec-a2e7-424d-a561-81d760b1c456"
      unitRef="U_USD">495000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
