<?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_0785fe6a-d0af-4065-80d9-90d3f1d6d970">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_43b9f99b-b3e2-4619-8582-6c33dce91581">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_ad619138-2022-406b-adfe-5e76f2eaa2ad">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_1d534c71-4722-4be2-8f29-265c678f7a30">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_ce5007f5-ec8f-46ea-9a37-8d6e53fe0c7c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_2ebcd16e-f71f-4317-b576-43481c6db078">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_6bd0084c-023d-4417-a0c6-ba9e20c094a9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_e7f4db28-d900-492c-beae-38e4fa05df09">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_50df5abb-f957-4491-8fb5-38fc3db77479">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_9383cb93-9811-40c5-a99d-d7a2fdcf3044">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      id="F_ab4f868b-9956-4bc0-a9c3-e85f2c69b720">&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;2,510,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_0785fe6a-d0af-4065-80d9-90d3f1d6d970"
      decimals="-3"
      id="F_c76c5f64-2b66-4e1b-81ea-055b2414d5ca"
      unitRef="U_USD">2510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
