<?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_52f2ad70-2822-4479-b8a3-41f86f61188e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_56bc170d-75c0-4af0-9d45-94fed3c43a7f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_e632a58f-61b6-473f-8086-f243577590ac">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_1cd60e55-f0b2-4bd7-a22e-89d5ef8e6e4b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_d7d94847-4ee8-40e5-90d6-9c4b8eb2ba6b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_33e47293-4b02-49cf-a995-cbedf55fcc99">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_c20fa241-4ae2-49dd-8de4-763151d37063">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_f43d04fb-0bad-4b66-823f-546e493fdb80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_9b9bfb0b-122f-4616-a1c1-0083f686e749">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_ff9f94ec-7016-478c-ab8c-ac810bc1fc50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_52f2ad70-2822-4479-b8a3-41f86f61188e"
      id="F_01def101-6fa0-45ea-81fd-86ec0cf4583e">&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,380,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_52f2ad70-2822-4479-b8a3-41f86f61188e"
      decimals="-3"
      id="F_81ba9903-70e1-407a-8112-10f0c26964ff"
      unitRef="U_USD">1380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
