<?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_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-28</startDate>
            <endDate>2026-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_9f5e2a50-9a31-4071-b5d7-8850fb0a14ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_7b3f7346-9ca6-486d-89f5-08f8f2103950">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_3f5def74-132c-47c9-bdb7-f749be64bc5d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_74a21584-c728-4e33-8f7a-4ba6fa9c29e8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_e19bedd4-2fcb-4647-a0bb-b57be75883f0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_584b0e57-1b31-4424-ace5-c3d73de4160f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_dec31256-3d10-4493-9ef4-a9cb23ec68f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_90b114f9-de30-4003-833d-7d0eaddadd64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_d68647c0-e173-4f9d-9250-aa6d4bd8e936">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      id="F_a003215f-e24c-4227-9f56-050424b3eb5d">&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 $&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;630,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_2fd8ab8e-793b-46b7-b5d2-6ba533c49e79"
      decimals="-3"
      id="F_ef3adaaf-6a1c-4c91-964e-bd5c82a61955"
      unitRef="U_USD">630000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
