<?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_c363bc55-8c16-4656-b07d-4c12973cbc79">
        <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>
    <ffd:FormTp
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_4b47376c-0ba3-4494-926f-38143135e8a7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_a91c1ef5-701b-4a15-9f40-b37e6f89cbde">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_160a9a1e-76a5-4658-9fb3-c21a8cf1e900">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_6e3b50f0-7a87-4794-9c1a-1f448e685cf5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_a6742ad7-6f10-4a99-bc1b-9c7785a138cb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_ded310ea-7158-45e7-b5e2-8395c31fb768">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_a5507370-3ca7-4134-95d8-c0c22410516e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_92f9af00-c915-40d6-a49c-5e5661b168dc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_ff1ed7ab-6d7c-4c6f-96e7-a6bc38af015e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c363bc55-8c16-4656-b07d-4c12973cbc79"
      id="F_3c9847d3-b42d-4af1-9bd3-b3804866e6d7">&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;558,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_c363bc55-8c16-4656-b07d-4c12973cbc79"
      decimals="-3"
      id="F_53ad740f-2fbb-42d1-af51-9780d37ad854"
      unitRef="U_USD">558000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
