<?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_a0f702ed-9ba7-44ff-b4c0-d9654d31b277">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_893a13ae-c6a9-4350-852c-01cf1825085e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_27b299f2-f182-4f9e-b95f-60b9b6dc9727">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_954bf1d1-2595-4c45-93ac-33df3119a600">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_6fe8e85d-7354-47e8-b165-ebc728498a19">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_4d1ec54e-cec2-4f62-b19a-4ea4f2d48e4d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_5d1ca49d-902d-402e-b0af-893ff79abdec">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_50073dde-a35e-457e-b431-cde8cb896051">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_9a80f9ea-6ea7-4e55-b2bb-b98e1a47efc9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_addbbeeb-f28a-47f3-81d3-ad7bb2788787">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      id="F_0ec47df9-ff70-4b24-9f10-0371bf58cbf2">&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:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is an amendment of the final prospectus for the related offering. This amendment increases the maximum aggregate offering price for such offering by $&lt;/span&gt;&lt;span style="font-size:10pt;font-family:Arial;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;20,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_a0f702ed-9ba7-44ff-b4c0-d9654d31b277"
      decimals="-3"
      id="F_ff44c3f4-cc33-4fb8-9f8f-593d01100502"
      unitRef="U_USD">20000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
