<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_008071c6-e261-4159-b63b-a73683ff927a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_b8af41a6-f12b-4e61-897f-4f0a41efd226">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_2e35117a-8883-431f-8817-763d99fb10bb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_f62586f2-e5d5-4ad2-b71a-0c53fca26264">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_67e5b7fc-3c7d-42ee-b474-6dca7783dcac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_9db35611-78ab-4240-b84b-e24991223072">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_77b1856e-f2cd-4977-9f20-e08324d4c0b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_9d36ec62-658e-4a07-beff-ce867d97ac52">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_7239a1f1-947e-432f-b1ab-a257a8d54a01">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      id="F_507304da-2167-4c29-92dc-706550094e6e">&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;1,255,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_8cd01aed-d5ba-43e6-9559-5e16350dcd5d"
      decimals="0"
      id="F_6bef969b-9867-4509-9143-44e645b96a31"
      unitRef="U_USD">1255000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
