<?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_92ba4dcb-9cf0-4395-bf75-6aceb56e3015">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_9040e6c3-b922-4a2b-bb21-5aa451ccb34f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_7095f0a2-64dc-4104-9cbe-365ff05394fc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_e485841b-3d7b-4cf4-88a8-c07e488a62f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_b3330c56-87dd-4f42-9d8d-b34683da8824">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_ce4e0a9a-d6fe-402a-b4b0-93c7985e9499">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_e16cf06d-cc3e-406b-b2c1-d4c9a9baf33a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_804c3646-3cc7-42ac-a611-1e3b5be7ce8e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_d6055256-c925-4903-b564-01b5a177d751">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_02e881ff-ef4f-4518-a70a-caab945bfaa3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      id="F_1c8a4319-5cd8-4345-bb21-37d8bd15bd75">&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,000,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_92ba4dcb-9cf0-4395-bf75-6aceb56e3015"
      decimals="-6"
      id="F_89b4ccd8-0229-4087-b320-8cb0c7d20b70"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
