<?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_c563647f-44bb-4c02-9228-ecb75b001c7a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_10a61ae2-1bae-4f4b-9a47-615515f1a4c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_5f4ad631-1ee5-4898-a183-90255c27a920">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_b07ee000-23ce-4ecc-be0c-b5366924cc52">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_0d5f9528-aeb1-4d2d-bf15-2fe0f5f49c8a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_5d34f543-0b59-45fc-bbc6-2a5d4c987fa0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_cc7579c6-2b7e-4971-8df8-4745a8090543">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_3e900a4d-8ee2-40eb-9618-d653e1c65c2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_90de52f4-8b92-4bcd-853e-561d2c37e127">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_4e97af49-c6fd-4c71-a76a-367988e3e311">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c563647f-44bb-4c02-9228-ecb75b001c7a"
      id="F_bd24b4a2-c843-400e-875e-0f30dfdb5102">&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;10,500,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_c563647f-44bb-4c02-9228-ecb75b001c7a"
      decimals="-3"
      id="F_d031b258-f344-484d-99e9-0aa281acf7f4"
      unitRef="U_USD">10500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
