<?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_450fa5af-79b9-4dad-a8e3-b5ca60709796">
        <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:OfferingTableNa
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_1580311a-8fd4-4874-89d2-9aad2a5f1ebc">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_7abae7d5-917e-4b43-9ee6-a295ea7140f6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_32544b35-3a64-4c30-85e7-cbc52797b5ab">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_6f4bf734-7b65-4960-bd9e-da0cca84db04">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_3ac34516-b125-4ad7-a2c4-0a2bb59ee9e3">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_1a895f46-f393-44de-ad48-be1d6042cff9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_c1f1333f-ace8-4586-ad1d-74d24805c273">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_19e23cc5-34d8-42ac-96cd-59442a364521">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_27073c5b-f7bb-4ef2-8f3b-f78c597b3721">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      id="F_41c1b3d7-1b29-4deb-8ea7-ec795e0e259c">&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,395,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_450fa5af-79b9-4dad-a8e3-b5ca60709796"
      decimals="0"
      id="F_b9b9ed12-847b-48c1-b72d-74f43ccbb3b5"
      unitRef="U_USD">1395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
