<?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_57b50e61-be98-4b1a-96c0-e186b648326c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_dc2ba468-7be5-4856-a99a-c9f619bd6571">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_249667b1-ed3d-4916-8e28-7a5faa74d2be">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_31b28642-0f4b-4a7e-972b-7e2349ee3498">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_bed28e63-e782-4696-8087-42b0153c8199">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_570423e7-2cb4-4ce0-bc4d-fca427aff697">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_2456eb97-d08a-490e-acce-2f9e65ab7b33">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_f945bc8f-a8e2-4a62-98c5-4f5cd8940c73">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_5e6b962c-5f23-4755-8380-cb0189c2264d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_9ae9ec21-137f-45b4-aa5b-6f81b2aeca43">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_57b50e61-be98-4b1a-96c0-e186b648326c"
      id="F_f90b5642-c138-42dd-84da-ab2ac5dc029f">&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,058,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_57b50e61-be98-4b1a-96c0-e186b648326c"
      decimals="-3"
      id="F_d5105a2c-9f17-4ea9-a29f-639231c292e6"
      unitRef="U_USD">1058000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
