<?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_a8fa751a-e30b-4d61-8d79-7d3651856d4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_0c974554-c857-4e6c-b466-01a69d7f0d77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_fc5bfea0-ae12-44fd-99e0-28ec4f9ff1b5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_182d5697-aff1-4398-9315-0e34acb60c7a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_bb33615e-0a53-4733-b462-05c3ac45ea45">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_99feec6b-7c35-40a5-bb14-9a9b2b03e588">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_9231a186-6d12-41e6-943f-4fa33f280e0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_42fb004e-4ded-4e4d-9663-890a0bcdc466">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_c32ed31a-1108-45f7-912e-96899d4c3af5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_df318df3-a30c-4721-bd09-3d16f932b0f5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      id="F_1cf19363-0ac8-4543-bc12-4f960b8d8e94">&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,000,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_a8fa751a-e30b-4d61-8d79-7d3651856d4e"
      decimals="0"
      id="F_84370638-1372-45f1-a2b5-fd3871ed49b6"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
