<?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_6d9b1f31-11d1-412d-b201-4ca6746b5298">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_f63e3b4d-7dfa-40b8-8b89-c045138918a9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_930f4f82-40af-4f3f-bbf5-81f379cfb77c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_3b109bf1-090b-43db-9d49-25317b825996">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_0d6e40d7-71b1-4639-940b-4542860cfaee">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_a489b539-2c34-4288-ad93-d3f3f01224d1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_7a5dd63d-1813-4fea-b224-b08d0fafbf48">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_72b10bf2-2bfd-44a2-a013-5c18774eb11d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_a361da35-6797-49ac-806c-5259883f56f0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_d97fa5a5-1611-4cdb-9d17-43a7df8c2e0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      id="F_d8900376-50bf-4071-a9c2-d59388aba572">&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;50,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_6d9b1f31-11d1-412d-b201-4ca6746b5298"
      decimals="-6"
      id="F_b5dfae37-cd4e-49d4-80c1-3fec02ba4e60"
      unitRef="U_USD">50000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
