<?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_239bd16a-8f2d-4f03-a110-3900e2297a96">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_9c3ffb7b-beed-49dc-988f-7f0cd3182239">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_71b50fa6-467c-46c2-a8dd-d4d389aefad2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_f96c97ae-b768-49fe-9d06-74e06dd5c948">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_94d31416-a832-444c-bb93-8bfcccc3afd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_64c9f1d1-fcfb-4997-a9d1-bf2ff9e45d1c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_d030cec0-a39f-484c-a089-c6cf4efc8208">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_dda13381-abe2-4501-8eb9-0f8f428bc060">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_70b0545a-30f2-4c54-8169-c0fc693631d1">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_bf32d14e-3743-4afa-8b94-aa14d07d2d63">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_239bd16a-8f2d-4f03-a110-3900e2297a96"
      id="F_13b38ede-ee0a-41de-b192-746bfca59179">&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,301,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_239bd16a-8f2d-4f03-a110-3900e2297a96"
      decimals="-3"
      id="F_568da8e1-c555-4a72-bb70-17e8b458edc4"
      unitRef="U_USD">1301000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
