<?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_67067d50-474f-429e-826b-b739db98a2dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_b13cb90a-f0d7-4b2d-8f89-e9b8f941a163">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_87f95d2b-31fe-4926-ac6f-51728875c2d5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_c6c560d5-bbf4-4f00-a392-2ed8fc4c3339">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_79f7e5b9-e1c2-4af5-afc8-128a98386212">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_e1beb0a0-be38-41e6-aaa2-8f9e42c06a84">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_940f1f9d-d520-4262-9ffc-4908c19e8715">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_dea5a8ce-e891-41a7-89cd-d57e11f0c81e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_28f8365f-235e-41b5-8b45-92068e531f07">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_248c5fc2-811b-4df6-9bff-65ccf22a13ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_67067d50-474f-429e-826b-b739db98a2dc"
      id="F_42cec07b-5ac4-4e43-952d-e600e93af0bb">&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;170,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_67067d50-474f-429e-826b-b739db98a2dc"
      decimals="-3"
      id="F_a922abbb-987c-47a9-8703-4ddbcc6a186b"
      unitRef="U_USD">170000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
