<?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_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf">
        <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:FormTp
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_8e5a749c-3945-4c6c-92ea-97ace6b9f22f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_6d487602-6d81-4591-8389-961fba6ca882">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_ccef9bf0-f892-4b14-b988-485e1b10ab7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_c9ae5ae4-f64f-42bb-a560-072615167e0e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_cd58bade-a07c-4127-bdc5-ab0e2761825b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_f9df725f-fd8a-4b79-af34-4b569106e90b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_8e1014ee-e1b1-42dc-8dd9-922ce14a6a6d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_cad3b232-ec63-4e21-a8f7-764f97ac98e0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_f4b23a7a-9625-4446-a9ac-a3e8944bab1d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      id="F_14be1eec-193b-4036-9768-abc9030622f8">&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;4,296,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_c6a2c39a-8db1-45cc-86ed-18d13dbd1fcf"
      decimals="-3"
      id="F_9655d72e-12c7-4ee0-954d-eeeea922308c"
      unitRef="U_USD">4296000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
