<?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_6841c3be-98a9-43e5-85aa-ebf4f8f12882">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-14</startDate>
            <endDate>2026-05-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_bd7e4705-75d8-4065-ae9c-92a91d3f8de6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_4fc598dc-b926-494c-8dbc-219712d86ded">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_c9143d5c-6bdf-4be7-ae29-a93e2bf2b465">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_45e93545-25c6-40f6-b615-a5124d0a6e97">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_f890aa13-2156-4f41-9225-df3bd84fb539">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_6040b661-dd69-4387-8a0d-79ab3d758b96">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_87372a46-2ed2-4602-9904-cd3f8aa9a2a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_c94b2414-7676-4aaf-b1f8-540c1fbc0a40">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_225c0f9f-e27d-4572-9a5b-7589037cf933">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      id="F_f2d5f83c-1b0d-40ec-876b-82e7fed83319">&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;2,675,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_6841c3be-98a9-43e5-85aa-ebf4f8f12882"
      decimals="0"
      id="F_dfaa0315-1004-4b17-a677-d8d3a125a19b"
      unitRef="U_USD">2675000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
