<?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_26265170-33e8-4193-9a05-d2f13b2a8034">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_2341559c-0562-4026-b3b8-e526dfc5c82b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_0224b7fa-dacd-4716-9c20-46a4e60429f0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_3a8ac211-2d99-455f-ada0-dacc21147ed1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_eccb0583-75d1-44c0-93b7-8a37310e4655">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_cee21979-dff4-4828-a695-91e71c0082c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_e5f8bcad-2a34-44c4-bdb6-f378a6a6cc38">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_488f94ab-7122-4144-9c95-0a5aa1b759e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_9ff6582c-9341-40e6-8c27-e7bafdebac19">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_41060167-8719-4a97-9a1c-792bc4d0f432">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_26265170-33e8-4193-9a05-d2f13b2a8034"
      id="F_c2a2c659-03d1-4fd5-8446-5dd01f40865e">&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,468,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_26265170-33e8-4193-9a05-d2f13b2a8034"
      decimals="-3"
      id="F_d8e35a06-9cc2-4b3a-b34e-e7b304d2d03a"
      unitRef="U_USD">1468000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
