<?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_b218cdfb-7ad3-42c7-b3b6-83fca426a59d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_1ebc41bf-8d11-4c5b-98ba-4b18dcf2a621">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_0ed67cf1-c20f-4fd7-a8e5-46fc362ce1df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_b0aea290-8a29-455f-945e-ec51a73a5feb">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_e1c7b13a-c0c3-465c-a4e8-cb35ca6eec11">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_22f0fb34-11f0-469d-a337-ace481da02eb">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_2f8c6a6f-933b-46eb-ac75-fbe0ff66dea6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_e952ceee-f9e9-4de7-8ea2-61fbbd2218fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_3629f152-b790-4043-a966-98d5ef1350b5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_f2a36c0c-7825-4b79-bd77-bb28ed5c0243">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      id="F_27990a07-209a-45e0-9391-8da6d0a6fcc7">&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;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_b218cdfb-7ad3-42c7-b3b6-83fca426a59d"
      decimals="-3"
      id="F_dc674c0d-c425-46fe-bb1c-b6f8d7f1d87c"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
