<?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_93d78bb9-f5f0-423c-a211-3d924a482ba5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_766e59cb-fc46-4319-a2c5-8a7bbe65ad9c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_61c1076c-b8bb-47f7-9586-1a75fe34a7ab">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_c7489a56-a0df-4706-abbf-c7fe40104003">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_c8bf01f9-e175-4417-8b06-edd730815fd4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_8f24575e-c5b3-4f3a-861d-8f415c45b82c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_261fd998-05f2-4fb6-a199-5614c7122752">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_453bff3f-7b6c-4c72-b6fe-c05ab9a5ebb7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_16e3554c-22da-4eef-b0d3-f279150271d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_61108768-3c8a-48b8-a86e-fb5bacf530a7">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      id="F_5bfe7c8e-1767-46ae-b29a-589a82bf1968">&lt;p style="tab-size:26.66px;font-size:12pt;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,757,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_93d78bb9-f5f0-423c-a211-3d924a482ba5"
      decimals="-3"
      id="F_3d2d657b-4091-40c7-a365-67a7f9293672"
      unitRef="U_USD">2757000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
