<?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_74fdcfa1-85ae-4dca-a853-2458578bc165">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_4869e74d-a274-478a-8eea-797cecadfab1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_93ad7dfd-0670-4c9c-bc46-b983342abb26">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_258e922d-56ef-4168-9441-b50d62b9e3be">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_bfa36ad2-9909-43b9-8f25-f372d7d4da61">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_e0ad61a5-2f3e-4eca-9dad-6fe6a5e03df7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_73f4615f-15a8-4d68-8397-3d2802e1451b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_81b58e73-ed57-41dc-b6a9-699f0b016fc6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_475856b0-1ef6-44a9-be9a-bb88793768e3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_8029449d-a7ec-4828-9ab4-36b5ab28d521">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_74fdcfa1-85ae-4dca-a853-2458578bc165"
      id="F_0722d2fb-82f0-45ec-b6b7-1362a9789c4f">&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;997,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_74fdcfa1-85ae-4dca-a853-2458578bc165"
      decimals="-3"
      id="F_c9f0707a-1918-4131-bd45-73c233d6a7c7"
      unitRef="U_USD">997000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
