<?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_96e6bcf9-86b4-438e-b16e-5a1ad4051559">
        <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:OfferingTableNa
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_44771c58-4188-443a-bba8-759d331c7769">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_eeef2ee0-e889-4db3-aa1e-5d452eb1fc3a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_07e3e646-1f40-47af-a460-e1c0525c791b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_1e849d00-6f17-45f9-bcef-ea9df2882e0f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_97c43a72-7e69-4f3b-9708-4944f5870146">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_f19fdbcc-1f67-46dd-abba-7b9bad09ee66">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_1e7452e0-19be-4cbf-a3b1-75d0869bc6a3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_4403edc1-2c4b-439a-b207-533661b34244">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_0c2ec58e-dac4-4017-ad05-b9f03b22e691">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      id="F_a2c14c63-86dc-40c6-9e26-584bf45b92be">&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;264,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_96e6bcf9-86b4-438e-b16e-5a1ad4051559"
      decimals="-3"
      id="F_f21fab3c-42ba-4c94-8355-662bbdde4ee8"
      unitRef="U_USD">264000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
