<?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_9973f926-f6e6-418c-b7ff-6a9ed7e945b4">
        <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_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_d6db716a-55db-45fa-a608-a66ea8c0612a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_9c4beceb-dcd1-42bb-99c4-48e0458c0052">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_f03e48e2-db7f-46b1-b4a9-710758a4ab7f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_3b93717d-0faf-43f5-88b8-113b797ef0a0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_4f38046e-b2cc-4a6f-96ef-5443f465b5a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_fcc59d1c-3e0e-4a53-ac0f-ac458bb4e3a5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_6ebda851-d176-4417-9a79-1196f5f2437a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_31e6189b-3e04-4c66-a203-d4e77c54aa64">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_9e0b97a6-66aa-4a06-8554-6cbadd313d86">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      id="F_e5cff83e-c08a-4057-a77d-2f9fec10e372">&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;4,760,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_9973f926-f6e6-418c-b7ff-6a9ed7e945b4"
      decimals="-3"
      id="F_bbcd3d73-85f5-4081-9893-44d1ce119958"
      unitRef="U_USD">4760000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
