<?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_88a89f3f-b189-477f-8353-b3be28b7c125">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_8ecd7c98-521e-4716-bde9-57684a31f22c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_36365c35-4b80-45b3-b223-58337ee73ff8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_820293d0-ea6c-4937-a53c-786b152ba85e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_c74d9ef5-3b85-4441-97e3-ee280a8b3261">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_ca205357-214c-4530-8897-193dbaf10e62">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_8bb7727b-68f6-450f-9eec-d124c2147f7c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_25e3eaef-aaf0-4e6c-af5a-6f934b5e2e7f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_ea04d9a7-dc72-449a-8bee-ab2c60ef84bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_dcf8b25d-42e4-41dc-b150-b3b891e097f5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_88a89f3f-b189-477f-8353-b3be28b7c125"
      id="F_10516329-af7a-4160-a50d-128e26b1bc94">&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;3,523,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_88a89f3f-b189-477f-8353-b3be28b7c125"
      decimals="-3"
      id="F_ddea9a7d-56a0-4fcf-8977-c20bc78e2042"
      unitRef="U_USD">3523000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
