<?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_35774390-43e6-4653-8c9b-ebc8b23ecb87">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_3457fda2-bdf2-425f-b676-2b635ad57b40">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_e357d9c1-f9eb-49fa-9f73-c9ce79f27984">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_3ebdeb76-bac8-4721-9d86-0363fb8a8944">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_9e4f1fb5-9023-4a4f-a588-f2c5d8bd2004">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_6a460b77-e848-41b8-8c25-8c7f0e479088">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_3f63bd16-e250-4897-b7a5-a6dce67e7be0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_430ed1a3-9a0c-4d7c-8e55-1be2385ca1a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_81c63744-4407-46fe-8568-8bccf922033e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_77403009-28f8-43ac-83a4-70cf0ee63b67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      id="F_047a45b5-23ee-4323-9a97-252db804c9b7">&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,720,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_35774390-43e6-4653-8c9b-ebc8b23ecb87"
      decimals="0"
      id="F_8023a456-ded4-410f-9458-ebd16920ab20"
      unitRef="U_USD">1720000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
