<?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_4100efe4-0818-4220-89cb-457493ea9e35">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_f349614f-bd2f-43cf-8b25-d5b0cd9ad6ac">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_24f47c0e-60c0-41f8-9249-32928daf20f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_26454f9b-8296-4a10-979d-e3b13dbd40e0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_f6064ba7-942c-41bb-86ff-8af17eca563c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_877ec6a5-f2c8-49ea-83e7-0321e1bd8c75">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_0586ebb8-3680-47a4-a6bc-a630548e968f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_c4beb1d6-d2e2-4a6a-a5c2-d73490781d5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_65ec4ccd-3a66-4eea-a6fd-10c49281bb77">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_58372848-79fb-46af-b2dd-051e81e41871">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4100efe4-0818-4220-89cb-457493ea9e35"
      id="F_c957dd9c-b0ff-4f7e-a44c-ffade4d6f2a4">&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,903,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_4100efe4-0818-4220-89cb-457493ea9e35"
      decimals="-3"
      id="F_2e8b718f-322e-47f7-b30a-45e50906fe9e"
      unitRef="U_USD">5903000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
