<?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_2b8a5a8b-3853-4fa9-8570-3a22aec80727">
        <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:OffsetTableNa
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_ff011706-510e-46ba-8fe8-f5c9d39ffe79">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_0491a56b-eed1-48cf-985a-4437ccbf059e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_aaf26521-1e55-49f3-9af8-644347282aa4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_b98a3693-bcea-450e-8ba2-74cb10659dda">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_5cbe9df0-9400-4e8c-9b64-fa06880dcb9b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_f07b0bd2-10c4-4daa-b6c3-12fee604d317">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_eb450bb1-b148-415e-b4c9-411ac2d40763">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_fbbb4492-a863-4362-9736-0a787f4adf51">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_838b96bf-94f9-47a7-a47d-3ffe7aa9e8a6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      id="F_0d9461a0-b168-49fb-8b27-d07045a1cf2c">&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,389,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_2b8a5a8b-3853-4fa9-8570-3a22aec80727"
      decimals="-3"
      id="F_cde899ba-9ba1-4ad3-82a1-d37e4c30df3c"
      unitRef="U_USD">1389000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
