<?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_59fde944-8f5b-42e4-b9d3-bab453a18b9d">
        <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:OffsetTableNa
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_31d87c62-262f-410f-9f90-98dc60b6b033">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_4fd17f1e-a6df-434e-a9ab-34bfe7f39873">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_e91c0422-1771-415b-a960-e51cbbc90aeb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_48a48409-f75b-47ce-a34a-e0723282309a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_e93d458c-2c33-4b6d-a705-769ee285745a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_c30c16e1-9786-40c8-9f39-e72c2fe32319">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_be656fdf-6791-43f5-a638-3b296a46d4cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_b04765e5-2601-4ad8-8039-7fe23b947403">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_3add83f6-24b2-454e-99b0-fec3e80de62f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      id="F_f68ce6e5-1c06-47cd-85a7-c3e85e97d6f3">&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;374,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_59fde944-8f5b-42e4-b9d3-bab453a18b9d"
      decimals="-3"
      id="F_5bffabea-e628-46c9-a617-b3bb346832d3"
      unitRef="U_USD">374000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
