<?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_c148a356-1d1c-4300-90fa-1ac2adf42c6d">
        <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:OffsetTableNa
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_ad106ca6-3253-4479-accb-a3145ea40d13">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_b88514ad-ac14-4348-8d25-f722ef1cc36d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_9c4ae7e0-0f48-4e68-a6f2-0f35b232af35">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_5a4cc476-69e5-4cdd-96ca-e3646f29351f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_58db878b-894c-4b3e-8d1e-3d2f30ab486e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_36c87964-b107-412f-81e6-d8d72857891a">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_4751ba93-d490-4265-96e4-c3eebe342f4f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_d5e404e4-ef0b-4661-beed-7a9ae388f9b8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_c90735fc-77ec-485d-a9eb-16781372834b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      id="F_cbb0ba49-f21d-467c-9b68-60f2a95a1516">&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,563,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_c148a356-1d1c-4300-90fa-1ac2adf42c6d"
      decimals="-3"
      id="F_44ff3248-134b-4dcc-8bdf-4c6a0bb5a757"
      unitRef="U_USD">1563000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
