<?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_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_ba788ff6-eeed-453a-bf12-3be7a14553d7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_74318777-f72e-45d7-9cda-a29a09afe327">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_d4d30695-37e1-43e0-bec8-ea40247fefed">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_49be38fd-dfb0-4132-bdb3-d98ab1e92be0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_fbc58244-fc58-45c9-86cf-b449326ec397">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_9e9201d9-7620-4ab9-8609-9f28a2206ced">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_de21673f-6962-4bd8-909d-2e23ca37df83">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_48a1df04-980c-4076-88cf-6e40b12c9f3b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_89b0cf9e-9b04-4a58-9e32-a83a53928a2d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      id="F_c7eecf6a-a00a-4e8b-bdd3-06074a99fe72">&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,194,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_facde94e-73cf-4c1f-a4fa-1c5d44ba9eb7"
      decimals="-3"
      id="F_72b00d36-42d3-4840-9ac9-c7c6090ae022"
      unitRef="U_USD">5194000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
