<?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_7c4215af-2bfc-4503-9d58-b55b194b5d19">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_3bc3d31d-b355-4399-9970-3eac6139a38d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_232a688c-c8b2-4929-9819-07922ed12da0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_44cbc314-e489-43e7-920e-99a679bb6b6f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_6a6a689a-dc1a-4722-88a4-126f62703f30">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_0613130c-5ddc-4f47-9e7a-930256f35a70">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_4f6374dd-4c66-4a48-8481-57c88ccfc54d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_b268ad80-a3de-4b66-8dbc-87cda78f9162">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_96a73437-a920-4332-9859-138669b53daa">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_6a1d0d1c-3349-4127-a936-0192c6be3351">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      id="F_e015747d-131e-41ec-b19c-39e3e0f1ca12">&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;583,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_7c4215af-2bfc-4503-9d58-b55b194b5d19"
      decimals="-3"
      id="F_64926f05-a375-4024-8afb-7942a98b5342"
      unitRef="U_USD">583000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
