<?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_54544bbf-70e7-486b-aab7-a27b76ebb135">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_c2105db7-1840-4a4f-a263-c6b6725dac22">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_6e4459b9-fa77-4e18-8de2-0ed7dd221da0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_0e72f25e-87c8-4d94-9ebb-bf78e829a0a1">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_1ba638c1-dbf1-4c04-a401-3d2e83e65f8a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_e46c7329-529c-447e-92f2-921ae667dbff">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_23a81073-b437-44d2-876f-403a0dbdf9dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_56edf6b4-8e03-4522-8ef5-0d3f85f62fd7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_b52f9523-b52d-4de0-a96c-2ff666b855de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_69354eab-1bc0-47da-96c7-285e8ffc124b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_54544bbf-70e7-486b-aab7-a27b76ebb135"
      id="F_c976e99c-6ddd-48c5-8349-3efbacaef30a">&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;542,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_54544bbf-70e7-486b-aab7-a27b76ebb135"
      decimals="-3"
      id="F_bd1c6b2d-b39f-4e0a-9892-89583c8de15a"
      unitRef="U_USD">542000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
