<?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_1d1afea9-e476-443f-9cee-034572339f69">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_da42614b-6719-4d8b-a1f7-05a3289c41b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_2dce45d4-d4f5-4618-93e5-ee01ae8a002b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_ca3fcfbd-15d7-44f2-a3ff-9c2a222fc906">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_62e06770-3fec-48e4-b8ca-3fa334c0f023">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_c4a272e2-2f2e-421c-a0f8-1fce8ce51dc7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_cd805923-a0c4-440b-bc93-7cf3969d600e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_0e2bddcf-66cc-4ef0-8fad-650bff372e08">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_5660db20-a445-468a-bddb-9c0d2614609f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_07ef555a-5e99-452f-aff6-9cbf69666564">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1d1afea9-e476-443f-9cee-034572339f69"
      id="F_a5f86947-1c8c-40f4-85b3-8ea24c73604a">&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;383,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_1d1afea9-e476-443f-9cee-034572339f69"
      decimals="-3"
      id="F_5dc806ca-c4bc-463a-a8a7-6113d3cc5df5"
      unitRef="U_USD">383000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
