<?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_b97c1d03-6cbb-4a1d-9263-12a356d4dc27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_f556acd8-6e59-4d2f-85d5-2006d6abf75d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_c7003211-0343-463b-877b-d02266bea58f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_c4678adc-0cce-4f94-9727-e170dfc9bd47">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_581b9dd8-937f-4b14-bf85-9bb8cc5b008e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_d8bd3949-206c-45c3-be08-6075debc1893">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_2d3b97f3-7786-4ae0-8cd7-f7e3e99c284b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_89560d18-16bf-4a1b-81b0-84ba4e98c0b3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_18c0bbe3-081f-4054-841c-c99bada58931">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_c5f666cd-3dff-4333-8ea3-c6ecd27ffe28">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      id="F_962fbb79-34dc-4673-b1fe-57a109214cfd">&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,879,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_b97c1d03-6cbb-4a1d-9263-12a356d4dc27"
      decimals="-3"
      id="F_9c3e775a-363d-468f-90fd-aebd447fa73e"
      unitRef="U_USD">1879000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
