<?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_f436f18d-978a-4fe8-9921-2e6bb4f34b5a">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_c547bd95-1517-4483-9b71-3f2733e12207">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_fda51bed-b9bf-4302-8651-fa7bf558ba54">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_9a3f5c2d-5d9b-4821-8081-81bd81b3bb1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_2400e845-45a7-4006-9166-1528ea939fa1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_df219fa5-81be-491d-ba39-a576021c9be9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_7f972892-6c28-423f-b347-2748065fc7b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_66d48c1f-cfbf-475a-9839-accd8fa01b4e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_e623b825-a03a-420d-8553-40914ff6db2e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_1e3422cc-29a0-4051-b6df-06761f8f4363">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      id="F_239a0d50-1760-40d5-95f6-25c6db7dc785">&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;500,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_f436f18d-978a-4fe8-9921-2e6bb4f34b5a"
      decimals="-3"
      id="F_e9e8484d-705b-4568-9eb2-a4e9779477b7"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
