<?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_d0df3764-3147-48c9-b0c7-f7fe92494bc6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_a3bf596d-70b1-4e70-9e68-8ddc9a6e17a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_43ede33c-d3de-4aea-bba0-249d35288083">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_7e040dd0-3b81-4582-8eb1-a839e1654203">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_44c8faef-aa6a-4c47-9470-c91eb84263c8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_a6d28bcb-b85f-465d-9bc6-c0f4d7edc6fd">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_8f58f181-49bc-4d18-9cc6-ae3bdb4cb460">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_1f41ab1f-a3c3-4bb8-a15c-4d45c9527518">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_c786512b-3f7e-4590-a1d9-7d7ceed2d69c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_01fbbd80-f651-4816-9197-a74cdb302877">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      id="F_696b2943-106e-4f68-935e-b0dba720df16">&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_d0df3764-3147-48c9-b0c7-f7fe92494bc6"
      decimals="-3"
      id="F_6ae34953-9b10-4492-8456-65e20debedae"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
