<?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_bd3f1086-a871-457b-9b32-06ecabb3925a">
        <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:FeeExhibitTp
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_5ddf0f95-e4e4-497b-8711-2085be570555">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_38fa3135-d8fe-46c3-bbe4-633ff968bd79">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_cf4f3a39-f7dc-4cd2-9130-3ad90ca73ad2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_4e963a89-535b-4a11-a913-246a12e22647">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_8b2732fc-5c5f-40f5-8c0d-c32aa57a3ad0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_a42dc7c0-3a29-4a6d-be3d-0e4ca2668626">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_2fca262f-9200-4ecf-a558-ad30aa449921">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_b71f3c7e-0558-4b3c-a695-03b8769f8f00">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_c9cf6889-a64a-4eeb-bf62-2dc83100e691">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_bd3f1086-a871-457b-9b32-06ecabb3925a"
      id="F_c209e7fb-23f3-4271-8e27-028434ba9679">&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;332,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_bd3f1086-a871-457b-9b32-06ecabb3925a"
      decimals="-3"
      id="F_d55cbbbb-4a67-48f5-a24e-300b6b927b7a"
      unitRef="U_USD">332000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
