<?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_e07eb775-2572-49ea-bf9b-d1a6bedce774">
        <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:FormTp
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_2062d953-b226-4637-abd1-b805629b3472">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_8526a4fa-18d1-4499-90ed-1dcf51a75bea">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_82795ffc-a212-4d93-96f5-72adafc167cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_21ed8fdc-daf2-4a4c-8cb2-f658089b3827">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_f5c89a92-64f1-4a80-9fda-77936c5796f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_b08957d2-cc82-4aba-aa6a-271574039db0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_639e0f17-feb4-4443-8aa4-45b3b2742631">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_0cb77b66-562e-42b3-a3d5-759f528c8360">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_997b7f34-d1d9-4f87-9072-819e0ee3846c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      id="F_0d75a8e3-e3ca-4487-9879-cd6a034aafaf">&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;7,200,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_e07eb775-2572-49ea-bf9b-d1a6bedce774"
      decimals="-3"
      id="F_142a689a-7a2e-468f-9a24-0a4344306c7b"
      unitRef="U_USD">7200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
