<?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_29f89c97-9fbb-4ef5-83a0-32de29a8a867">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_24988cf5-06a6-4953-af15-159bca12a084">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_286f2f6b-d254-4b4f-ae4d-f2b361ab38b9">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_a3631a3a-e7cd-4334-a419-27f05277654d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_2e6b59b7-8f88-479a-966f-020017e731a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_828931b8-2f99-477e-b24c-5d0909754019">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_48566135-7789-4ce1-8c94-99e036fc13de">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_3d68e83b-73f1-443c-9eed-632e4df55703">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_1513a98c-c75e-43ae-a9ec-cf32c42e4c3b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_d12057bc-02f5-43de-a3f6-dee4d0a70f2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      id="F_471e667e-ab69-42d1-971e-42ebb8c372b1">&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_29f89c97-9fbb-4ef5-83a0-32de29a8a867"
      decimals="-6"
      id="F_c72d435c-2559-4f42-83c0-c9229fa08841"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
