<?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_b203b76a-1413-4cd8-902e-357b9e681001">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_9e6ab1e6-5fcb-4bb2-a33f-18d1062d7ed6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_b7f0e5c9-8150-49a2-8051-66705dabb37b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_03f84945-c6fb-409b-8a0d-d406816ef918">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_86823f2f-1d41-4444-9dba-89bb27276142">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_e14afab7-2eb2-46da-bc81-846a0023aeaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_b94490ed-073d-49ad-b8bc-342aca3a39f1">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_ef2d215e-b7a2-4943-af53-448c8465b361">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_5ffd2457-6041-4e34-9b40-7efaa7a26cf9">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_0a83bb49-4da2-40d0-a98a-a7fa485d2d3f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b203b76a-1413-4cd8-902e-357b9e681001"
      id="F_4368a290-4d93-40fa-b52e-eb582fa7aadd">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,768,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_b203b76a-1413-4cd8-902e-357b9e681001"
      decimals="-3"
      id="F_ddbba3c4-f757-4bbf-b77b-aec21272b1c0"
      unitRef="U_USD">2768000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
