<?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_d0461b24-b33a-4450-a157-7135742f8210">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_8f3596e7-4ea1-4a7f-908b-eb05688e72c1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_f3378053-8fa1-49e6-9087-d33cb2950f78">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_6c8905ef-83b1-4c16-9b23-63cda7776dc3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_1608eec8-3d85-4c31-bb52-a424e94a5aad">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_39faf06d-bdc7-4d0e-bc90-af5916d9f84c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_cac16833-e170-4474-8db2-eaabae9a9f67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_9547356f-7b58-4029-9ca3-179c6c22d7df">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_f20e0861-7782-4e9b-8fdb-872e852eae29">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_cc02669c-7aff-46ea-9c8d-e6eb54b562ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0461b24-b33a-4450-a157-7135742f8210"
      id="F_0e8c440f-1b82-4ad2-9726-91b7103350ae">&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;5,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_d0461b24-b33a-4450-a157-7135742f8210"
      decimals="-6"
      id="F_2b90cb6a-9013-4e77-ad49-765cc92e1476"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
