<?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_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_4bac19f3-254f-460e-b889-fc6ebe2fa7c9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_7c4abcb1-f5ce-4389-8834-703558c9f8fc">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_640d75c0-cf3f-43c6-afcf-bd782a17a409">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_5b3d28ee-e765-4a1d-876a-a1c298b15657">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_f9262915-f204-41dc-bf45-c83afb4428c2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_8f358ef0-a7c4-4515-ae95-d2df37f3ce86">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_c40d3906-7355-4a22-ab1d-f993fc5283cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_7f02f26f-9c55-4aaf-9cf0-66dcac3b19de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_3e6bc698-34bb-4282-aa5f-d605fd783f4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      id="F_0d9fd118-ce78-463b-aad7-7e4df35540d1">&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,126,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_1878bfbc-b6b6-421f-a8d5-b8ccc67bd0d3"
      decimals="-3"
      id="F_99969668-4ea9-41cb-9259-7c12661fee51"
      unitRef="U_USD">1126000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
