<?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_aef528b7-f26b-4637-8cbb-18b256a86e38">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_0e362d56-a72f-4c54-a908-7ca9489027c4">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_9cea137d-b7bd-4e12-8ee0-a5bc98793abd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_cf9d13eb-2443-4bb6-bb75-65c0d5b0eab6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_a2c9243f-32a5-4b77-866e-660cebb1fb46">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_79dcfb59-0f9a-48c3-9112-9d4b4f2c46ca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_c3d8ff1f-0ea6-4ee5-9987-3d743a774128">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_55fff447-a54c-443b-8eaf-e716b781d899">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_a1426dc0-428a-4c85-bd7e-5e9d8613c226">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_7372d3c3-5a07-4b58-9c94-66c76c073494">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_aef528b7-f26b-4637-8cbb-18b256a86e38"
      id="F_882302a4-64a2-42f3-b41e-97f5a115839c">&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,395,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_aef528b7-f26b-4637-8cbb-18b256a86e38"
      decimals="-3"
      id="F_5ada785a-0fcc-4bfe-ac69-218ecbb74387"
      unitRef="U_USD">1395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
