<?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_4733c42c-3ed5-42ec-a0f2-40309387e4eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_ebda9210-971b-401b-acbd-a213a6ae8224">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_32c01ce2-b2c6-4cd3-ad44-6a84e7c1f9ac">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_0c0b9141-4b35-4f78-9df2-d2f3288df727">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_86e6a212-2f43-4312-a9e8-335d84f5e277">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_8c72b519-e134-4d31-a71a-35f03367ac83">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_dd4ad033-95ca-49e2-b0aa-32004fc04144">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_760ce96d-5de1-4bb9-9a6c-4c8519158f46">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_68b274f7-f0d2-42da-aef4-858eafb5dbef">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_5a0ceb50-6276-47bb-94dc-2c1170c03d3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      id="F_51a50723-b5e3-4b9e-9ae7-4380bb072451">&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;400,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_4733c42c-3ed5-42ec-a0f2-40309387e4eb"
      decimals="-3"
      id="F_42c06c45-7435-46c8-a619-baabdadb9b75"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
