<?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_005ffeed-85ea-434d-9e31-67891a840c11">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_806f184b-14ab-49bb-836c-c611b298ecb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_814444ea-6cb9-4e38-a3f9-b30b4f22f3f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_83582892-d3cd-4918-a57e-2f8e78c826d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_863d216f-fc5e-4d7e-a53a-db1822f81d98">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_cedf0001-fd72-41c4-ad75-fa15fbcf5fed">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_44e577d4-cb4b-4047-8536-5afbfafcb737">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_644a07cf-b304-446c-a5d5-7dcaf4b38ca0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_f2cb497b-ff1d-4be5-8c9d-7554720e5676">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_dde6aecb-ceb7-4348-a309-8d9afe997de9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_005ffeed-85ea-434d-9e31-67891a840c11"
      id="F_9b919607-903c-47a4-b6fa-37cdb8066a81">&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;39,159,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_005ffeed-85ea-434d-9e31-67891a840c11"
      decimals="-3"
      id="F_c35f035b-47a4-4254-96a3-e0a717ff572d"
      unitRef="U_USD">39159000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
