<?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_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a">
        <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:FormTp
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_8d52c8b5-aba4-4ae8-a230-48385d987896">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_2bb9cc52-7240-47be-b7b9-60a00a1fcac8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_9b0a8686-d0a8-4af0-b903-a03a958033ee">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_456d212f-f8df-4b9f-af8b-304e926426d3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_c8fef6f9-85c5-47d7-a254-716583d56d00">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_705c440a-2979-40e3-95ca-9ee5fbae0899">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_c6261e42-a5bd-4eb6-9457-0570bcc2ac78">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_f34ab169-d8b0-43cd-b4d9-3842720df755">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_0361c37c-0cbc-4ce0-8c97-52fd0aed83a3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      id="F_a1976e6b-5ef8-45d5-939b-640d8b92cc01">&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;12,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_ddd9cddd-d985-4eb0-b4fa-47f9f66dfe5a"
      decimals="-6"
      id="F_20d65ae8-9da3-464c-9f8c-cd4fb7dbe16e"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
