<?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_b24da3cd-6e27-4f2e-9298-299ac46c32ec">
        <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:EntityCentralIndexKey
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_30cfe20d-58b0-4021-a00d-9725531057d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_efdfbc89-ac6f-4c4f-a406-0a8686c0867d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_eafd7734-748e-46f4-bbf9-8fda4b2faa66">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_37216ccf-418a-4385-bcba-1ca9a2352810">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_d7f4d18a-2fd0-4109-81b3-744831e7af61">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_f1dfdba4-a82f-4e8e-96d7-0505e0e97efb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_fe8f9049-b9bf-4134-b760-7acd7ac83005">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_1f8a03e8-bc8f-471e-a2c3-a5c363dc1853">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_125b305d-95e7-4027-9c4e-1c4dfac8a0cb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      id="F_3ecfc13f-26e3-42bd-940f-7ed3e471d79c">&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;3,441,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_b24da3cd-6e27-4f2e-9298-299ac46c32ec"
      decimals="-3"
      id="F_71dc131b-d6d1-4796-8bb4-d7a868bc977c"
      unitRef="U_USD">3441000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
